Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caddy
Commits
57900782
Commit
57900782
authored
Feb 17, 2017
by
elcore
Committed by
Matt Holt
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for ChaCha20-Poly1305 (#1443)
parent
e50de809
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
caddytls/config.go
caddytls/config.go
+16
-12
caddytls/setup_test.go
caddytls/setup_test.go
+2
-0
No files found.
caddytls/config.go
View file @
57900782
...
...
@@ -417,18 +417,20 @@ var supportedProtocols = map[string]uint16{
//
// This map, like any map, is NOT ORDERED. Do not range over this map.
var
supportedCiphersMap
=
map
[
string
]
uint16
{
"ECDHE-RSA-AES256-GCM-SHA384"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
,
"ECDHE-ECDSA-AES256-GCM-SHA384"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
,
"ECDHE-RSA-AES128-GCM-SHA256"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
,
"ECDHE-ECDSA-AES128-GCM-SHA256"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
,
"ECDHE-RSA-AES128-CBC-SHA"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
,
"ECDHE-RSA-AES256-CBC-SHA"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
,
"ECDHE-ECDSA-AES256-CBC-SHA"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
,
"ECDHE-ECDSA-AES128-CBC-SHA"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
,
"RSA-AES128-CBC-SHA"
:
tls
.
TLS_RSA_WITH_AES_128_CBC_SHA
,
"RSA-AES256-CBC-SHA"
:
tls
.
TLS_RSA_WITH_AES_256_CBC_SHA
,
"ECDHE-RSA-3DES-EDE-CBC-SHA"
:
tls
.
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
,
"RSA-3DES-EDE-CBC-SHA"
:
tls
.
TLS_RSA_WITH_3DES_EDE_CBC_SHA
,
"ECDHE-RSA-AES256-GCM-SHA384"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
,
"ECDHE-ECDSA-AES256-GCM-SHA384"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
,
"ECDHE-RSA-AES128-GCM-SHA256"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
,
"ECDHE-ECDSA-AES128-GCM-SHA256"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
,
"ECDHE-RSA-WITH-CHACHA20-POLY1305"
:
tls
.
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
,
"ECDHE-ECDSA-WITH-CHACHA20-POLY1305"
:
tls
.
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
,
"ECDHE-RSA-AES128-CBC-SHA"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
,
"ECDHE-RSA-AES256-CBC-SHA"
:
tls
.
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
,
"ECDHE-ECDSA-AES256-CBC-SHA"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
,
"ECDHE-ECDSA-AES128-CBC-SHA"
:
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
,
"RSA-AES128-CBC-SHA"
:
tls
.
TLS_RSA_WITH_AES_128_CBC_SHA
,
"RSA-AES256-CBC-SHA"
:
tls
.
TLS_RSA_WITH_AES_256_CBC_SHA
,
"ECDHE-RSA-3DES-EDE-CBC-SHA"
:
tls
.
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
,
"RSA-3DES-EDE-CBC-SHA"
:
tls
.
TLS_RSA_WITH_3DES_EDE_CBC_SHA
,
}
// List of all the ciphers we want to use by default
...
...
@@ -437,6 +439,8 @@ var defaultCiphers = []uint16{
tls
.
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
,
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
,
tls
.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
,
tls
.
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
,
tls
.
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
,
tls
.
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
,
tls
.
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
,
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
,
...
...
caddytls/setup_test.go
View file @
57900782
...
...
@@ -64,6 +64,8 @@ func TestSetupParseBasic(t *testing.T) {
tls
.
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
,
tls
.
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
,
tls
.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
,
tls
.
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
,
tls
.
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
,
tls
.
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
,
tls
.
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
,
tls
.
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment