summaryrefslogtreecommitdiffstats
path: root/ssl/ssl.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-01-14 23:40:26 +0000
committerBodo Möller <bodo@openssl.org>2002-01-14 23:40:26 +0000
commit8c74b5e56ce4515c8f0c16a79788cf083f8c101e (patch)
tree26d1e17a85a2f42ffcc3a17c8e1e610c352b81f6 /ssl/ssl.h
parentc59ba5b5287b6e4ab6bd8e097baab579622d8160 (diff)
Bugfix: In ssl3_accept, don't use a local variable 'got_new_session'
to indicate that a real handshake is taking place (the value will be lost during multiple invocations). Set s->new_session to 2 instead.
Diffstat (limited to 'ssl/ssl.h')
-rw-r--r--ssl/ssl.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/ssl/ssl.h b/ssl/ssl.h
index 2f55322ab8..05fa9eef34 100644
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -108,6 +108,59 @@
* Hudson (tjh@cryptsoft.com).
*
*/
+/* ====================================================================
+ * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. All advertising materials mentioning features or use of this
+ * software must display the following acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+ *
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+ * endorse or promote products derived from this software without
+ * prior written permission. For written permission, please contact
+ * openssl-core@openssl.org.
+ *
+ * 5. Products derived from this software may not be called "OpenSSL"
+ * nor may "OpenSSL" appear in their names without prior written
+ * permission of the OpenSSL Project.
+ *
+ * 6. Redistributions of any form whatsoever must retain the following
+ * acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This product includes cryptographic software written by Eric Young
+ * (eay@cryptsoft.com). This product includes software written by Tim
+ * Hudson (tjh@cryptsoft.com).
+ *
+ */
#ifndef HEADER_SSL_H
#define HEADER_SSL_H
@@ -715,6 +768,8 @@ struct ssl_st
int server; /* are we the server side? - mostly used by SSL_clear*/
int new_session;/* 1 if we are to use a new session.
+ * 2 if we are a server and are inside a handshake
+ * (i.e. not just sending a HelloRequest)
* NB: For servers, the 'new' session may actually be a previously
* cached session or even the previous session unless
* SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION is set */
26' href='#n126'>126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
// THIS FILE IS AUTO-GENERATED. You can regenerate it by running `go generate ./...` at the root of the lazygit repo.

package tests

import (
	"github.com/jesseduffield/lazygit/pkg/integration/components"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/bisect"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/branch"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/cherry_pick"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/commit"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/config"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/conflicts"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/custom_commands"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/demo"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/diff"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/file"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/filter_and_search"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/filter_by_author"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/filter_by_path"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/interactive_rebase"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/misc"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/patch_building"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/reflog"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/staging"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/stash"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/status"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/submodule"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/sync"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/tag"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/ui"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/undo"
	"github.com/jesseduffield/lazygit/pkg/integration/tests/worktree"
)

var tests = []*components.IntegrationTest{
	bisect.Basic,
	bisect.ChooseTerms,
	bisect.FromOtherBranch,
	bisect.Skip,
	branch.CheckoutByName,
	branch.CreateTag,
	branch.Delete,
	branch.DeleteRemoteBranchWithCredentialPrompt,
	branch.DetachedHead,
	branch.OpenPullRequestNoUpstream,
	branch.OpenWithCliArg,
	branch.Rebase,
	branch.RebaseAbortOnConflict,
	branch.RebaseAndDrop,
	branch.RebaseCancelOnConflict,
	branch.RebaseCopiedBranch,
	branch.RebaseDoesNotAutosquash,
	branch.RebaseFromMarkedBase,
	branch.RebaseOntoBaseBranch,
	branch.RebaseToUpstream,
	branch.Rename,
	branch.Reset,
	branch.ResetToUpstream,
	branch.SetUpstream,
	branch.ShowDivergenceFromBaseBranch,
	branch.ShowDivergenceFromUpstream,
	branch.SortLocalBranches,
	branch.SortRemoteBranches,
	branch.Suggestions,
	branch.UnsetUpstream,
	cherry_pick.CherryPick,
	cherry_pick.CherryPickConflicts,
	cherry_pick.CherryPickDuringRebase,
	cherry_pick.CherryPickRange,
	commit.AddCoAuthor,
	commit.AddCoAuthorWhileCommitting,
	commit.Amend,
	commit.AutoWrapMessage,
	commit.Commit,
	commit.CommitMultiline,
	commit.CommitSwitchToEditor,
	commit.CommitWipWithPrefix,
	commit.CommitWithGlobalPrefix,
	commit.CommitWithPrefix,
	commit.CreateAmendCommit,
	commit.CreateTag,
	commit.DiscardOldFileChanges,
	commit.FindBaseCommitForFixup,
	commit.FindBaseCommitForFixupOnlyAddedLines,
	commit.FindBaseCommitForFixupWarningForAddedLines,
	commit.Highlight,
	commit.History,
	commit.HistoryComplex,
	commit.NewBranch,
	commit.PreserveCommitMessage,
	commit.ResetAuthor,
	commit.Revert,
	commit.RevertMerge,
	commit.Reword,
	commit.Search,
	commit.SetAuthor,
	commit.StageRangeOfLines,
	commit.Staged,
	commit.StagedWithoutHooks,
	commit.Unstaged,
	config.RemoteNamedStar,
	conflicts.Filter,
	conflicts.ResolveExternally,
	conflicts.ResolveMultipleFiles,
	conflicts.UndoChooseHunk,
	custom_commands.AccessCommitProperties,
	custom_commands.BasicCmdAtRuntime,
	custom_commands.BasicCmdFromConfig,
	custom_commands.CheckForConflicts,
	custom_commands.ComplexCmdAtRuntime,
	custom_commands.DeleteFromHistory,
	custom_commands.EditHistory,
	custom_commands.FormPrompts,
	custom_commands.History,
	custom_commands.MenuFromCommand,
	custom_commands.MenuFromCommandsOutput,
	custom_commands.MultiplePrompts,
	custom_commands.OmitFromHistory,
	custom_commands.ShowOutputInPanel,
	custom_commands.SuggestionsCommand,
	custom_commands.SuggestionsPreset,
	demo.AmendOldCommit,
	demo.Bisect,
	demo.CherryPick,
	demo.CommitAndPush,
	demo.CommitGraph,
	demo.CustomCommand,
	demo.CustomPatch,
	demo.DiffCommits,
	demo.Filter,
	demo.InteractiveRebase,
	demo.NukeWorkingTree,
	demo.RebaseOnto,
	demo.StageLines,
	demo.Undo,
	demo.WorktreeCreateFromBranches,
	diff.Diff,
	diff.DiffAndApplyPatch,
	diff.DiffCommits,
	diff.IgnoreWhitespace,
	file.CopyMenu,
	file.DirWithUntrackedFile,
	file.DiscardAllDirChanges,
	file.DiscardRangeSelect,
	file.DiscardStagedChanges,
	file.DiscardUnstagedDirChanges,
	file.DiscardUnstagedFileChanges,
	file.DiscardUnstagedRangeSelect,
	file.DiscardVariousChanges,
	file.DiscardVariousChangesRangeSelect,
	file.Gitignore,
	file.RememberCommitMessageAfterFail,
	file.StageRangeSelect,
	filter_and_search.FilterCommitFiles,
	filter_and_search.FilterFiles,
	filter_and_search.FilterFuzzy,
	filter_and_search.FilterMenu,
	filter_and_search.FilterMenuCancelFilterWithEscape,
	filter_and_search.FilterMenuWithNoKeybindings,
	filter_and_search.FilterRemoteBranches,
	filter_and_search.FilterRemotes,
	filter_and_search.FilterSearchHistory,
	filter_and_search.FilterUpdatesWhenModelChanges,
	filter_and_search.NestedFilter,
	filter_and_search.NestedFilterTransient,
	filter_and_search.NewSearch,
	filter_by_author.SelectAuthor,
	filter_by_author.TypeAuthor,
	filter_by_path.CliArg,
	filter_by_path.KeepSameCommitSelectedOnExit,
	filter_by_path.SelectFile,
	filter_by_path.TypeFile,
	interactive_rebase.AdvancedInteractiveRebase,
	interactive_rebase.AmendCommitWithConflict,
	interactive_rebase.AmendFirstCommit,
	interactive_rebase.AmendFixupCommit,
	interactive_rebase.AmendHeadCommitDuringRebase,
	interactive_rebase.AmendMerge,
	interactive_rebase.AmendNonHeadCommitDuringRebase,
	interactive_rebase.DeleteUpdateRefTodo,
	interactive_rebase.DontShowBranchHeadsForTodoItems,
	interactive_rebase.DropCommitInCopiedBranchWithUpdateRef,
	interactive_rebase.DropTodoCommitWithUpdateRef,
	interactive_rebase.DropWithCustomCommentChar,
	interactive_rebase.EditFirstCommit,
	interactive_rebase.EditNonTodoCommitDuringRebase,
	interactive_rebase.EditRangeSelectOutsideRebase,
	interactive_rebase.EditTheConflCommit,
	interactive_rebase.FixupFirstCommit,
	interactive_rebase.FixupSecondCommit,
	interactive_rebase.InteractiveRebaseOfCopiedBranch,
	interactive_rebase.MidRebaseRangeSelect,
	interactive_rebase.Move,
	interactive_rebase.MoveInRebase,
	interactive_rebase.MoveUpdateRefTodo,
	interactive_rebase.MoveWithCustomCommentChar,
	interactive_rebase.OutsideRebaseRangeSelect,
	interactive_rebase.PickRescheduled,
	interactive_rebase.QuickStart,
	interactive_rebase.QuickStartKeepSelection,
	interactive_rebase.QuickStartKeepSelectionRange,
	interactive_rebase.Rebase,
	interactive_rebase.RewordCommitWithEditorAndFail,
	interactive_rebase.RewordFirstCommit,
	interactive_rebase.RewordLastCommit,
	interactive_rebase.RewordYouAreHereCommit,
	interactive_rebase.RewordYouAreHereCommitWithEditor,
	interactive_rebase.SquashDownFirstCommit,
	interactive_rebase.SquashDownSecondCommit,
	interactive_rebase.SquashFixupsAbove,
	interactive_rebase.SquashFixupsAboveFirstCommit,
	interactive_rebase.SquashFixupsInCurrentBranch,
	interactive_rebase.SwapInRebaseWithConflict,
	interactive_rebase.SwapInRebaseWithConflictAndEdit,
	interactive_rebase.SwapWithConflict,
	interactive_rebase.ViewFilesOfTodoEntries,
	misc.ConfirmOnQuit,
	misc.CopyToClipboard,
	misc.DisabledKeybindings,
	misc.InitialOpen,
	misc.RecentReposOnLaunch,
	patch_building.Apply,
	patch_building.ApplyInReverse,
	patch_building.ApplyInReverseWithConflict,
	patch_building.MoveRangeToIndex,
	patch_building.MoveToEarlierCommit,
	patch_building.MoveToEarlierCommitNoKeepEmpty,
	patch_building.MoveToIndex,
	patch_building.MoveToIndexPartOfAdjacentAddedLines,
	patch_building.MoveToIndexPartial,
	patch_building.MoveToIndexWithConflict,
	patch_building.MoveToIndexWorksEvenIfNoprefixIsSet,
	patch_building.MoveToLaterCommit,
	patch_building.MoveToLaterCommitPartialHunk,
	patch_building.MoveToNewCommit,
	patch_building.MoveToNewCommitPartialHunk,
	patch_building.RemoveFromCommit,
	patch_building.ResetWithEscape,
	patch_building.SelectAllFiles,
	patch_building.SpecificSelection,
	patch_building.StartNewPatch,
	patch_building.ToggleRange,
	reflog.Checkout,
	reflog.CherryPick,
	reflog.DoNotShowBranchMarkersInReflogSubcommits,
	reflog.Patch,
	reflog.Reset,
	staging.DiffChangeScreenMode,
	staging.DiffContextChange,
	staging.DiscardAllChanges,
	staging.Search,
	staging.StageHunks,
	staging.StageLines,
	staging.StageRanges,
	stash.Apply,
	stash.ApplyPatch,
	stash.CreateBranch,
	stash.Drop,
	stash.Pop,
	stash.PreventDiscardingFileChanges,
	stash.Rename,
	stash.Stash,
	stash.StashAll,
	stash.StashAndKeepIndex,
	stash.StashIncludingUntrackedFiles,
	stash.StashStaged,
	stash.StashStagedPartialFile,
	stash.StashUnstaged,
	status.ClickRepoNameToOpenReposMenu,
	status.ClickToFocus,
	status.ClickWorkingTreeStateToOpenRebaseOptionsMenu