Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
3072aaa2
Commit
3072aaa2
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add the HSTS Support checkbox so the Web server config TLS tab
parent
0a3cd099
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/ctrl/WebCfgDlgUnit.cpp
+9
-0
9 additions, 0 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.cpp
src/sbbs3/ctrl/WebCfgDlgUnit.dfm
+13
-2
13 additions, 2 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.dfm
src/sbbs3/ctrl/WebCfgDlgUnit.h
+1
-0
1 addition, 0 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.h
with
23 additions
and
2 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.cpp
+
9
−
0
View file @
3072aaa2
...
...
@@ -82,6 +82,10 @@ void __fastcall TWebCfgDlg::FormShow(TObject *Sender)
TlsEnableCheckBox
->
Checked
=
true
;
else
TlsEnableCheckBox
->
Checked
=
false
;
if
(
MainForm
->
web_startup
.
options
&
WEB_OPT_HSTS_SAFE
)
HSTSEnableCheckBox
->
Checked
=
true
;
else
HSTSEnableCheckBox
->
Checked
=
false
;
AuthTypesEdit
->
Text
=
AnsiString
(
MainForm
->
web_startup
.
default_auth_list
);
HtmlRootEdit
->
Text
=
AnsiString
(
MainForm
->
web_startup
.
root_dir
);
...
...
@@ -135,6 +139,10 @@ void __fastcall TWebCfgDlg::OKBtnClick(TObject *Sender)
MainForm
->
web_startup
.
options
|=
WEB_OPT_ALLOW_TLS
;
else
MainForm
->
web_startup
.
options
&=
~
WEB_OPT_ALLOW_TLS
;
if
(
HSTSEnableCheckBox
->
Checked
)
MainForm
->
web_startup
.
options
|=
WEB_OPT_HSTS_SAFE
;
else
MainForm
->
web_startup
.
options
&=
~
WEB_OPT_HSTS_SAFE
;
SAFECOPY
(
MainForm
->
web_startup
.
default_auth_list
,
AuthTypesEdit
->
Text
.
c_str
());
...
...
@@ -281,6 +289,7 @@ void __fastcall TWebCfgDlg::TlsEnableCheckBoxClick(TObject *Sender)
TlsInterfaceLabel
->
Enabled
=
enabled
;
TlsPortEdit
->
Enabled
=
enabled
;
TlsPortLabel
->
Enabled
=
enabled
;
HSTSEnableCheckBox
->
Enabled
=
enabled
;
}
//---------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/WebCfgDlgUnit.dfm
+
13
−
2
View file @
3072aaa2
...
...
@@ -25,8 +25,8 @@ object WebCfgDlg: TWebCfgDlg
Top = 3
Width = 278
Height = 199
ActivePage =
Http
TabSheet
TabIndex =
2
ActivePage =
Tls
TabSheet
TabIndex =
1
TabOrder = 0
object GeneralTabSheet: TTabSheet
Caption = 'General'
...
...
@@ -200,6 +200,17 @@ object WebCfgDlg: TWebCfgDlg
ShowHint = True
TabOrder = 2
end
object HSTSEnableCheckBox: TCheckBox
Left = 148
Top = 10
Width = 119
Height = 20
Hint = 'HTTP Strict Transport Security'
Caption = 'HSTS Support'
ParentShowHint = False
ShowHint = True
TabOrder = 3
end
end
object HttpTabSheet: TTabSheet
Caption = 'HTTP'
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/WebCfgDlgUnit.h
+
1
−
0
View file @
3072aaa2
...
...
@@ -108,6 +108,7 @@ __published: // IDE-managed Components
TEdit
*
TlsPortEdit
;
TLabel
*
AuthTypesLabel
;
TEdit
*
AuthTypesEdit
;
TCheckBox
*
HSTSEnableCheckBox
;
void
__fastcall
FormShow
(
TObject
*
Sender
);
void
__fastcall
AnswerSoundButtonClick
(
TObject
*
Sender
);
void
__fastcall
HangupSoundButtonClick
(
TObject
*
Sender
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment