Skip to content

Commit

Permalink
Bump version to v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Sep 23, 2023
1 parent 7b7e6bf commit fa0e95a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ adheres to [Semantic Versioning][semver].

## [Unreleased]

[unreleased]: https://github.com/ameshkov/gocurl/compare/v1.3.0...HEAD

## [1.3.0] - 2023-09-23

### Added

* Added an option to use Post-Quantum secure algorithms for establishing TLS
Expand All @@ -24,11 +28,15 @@ adheres to [Semantic Versioning][semver].
both `h2` and `http/1.1` in TLS ALPN extension and use the protocol selected
by the server. ([#14][#14])

[See changes][1.3.0changes].

[#14]: https://github.com/ameshkov/gocurl/issues/14

[#15]: https://github.com/ameshkov/gocurl/issues/15

[unreleased]: https://github.com/ameshkov/gocurl/compare/v1.2.0...HEAD
[1.3.0changes]: https://github.com/ameshkov/gocurl/compare/v1.2.0...v1.3.0

[1.3.0]: https://github.com/ameshkov/gocurl/releases/tag/v1.3.0

## [1.2.0] - 2023-09-22

Expand Down
9 changes: 5 additions & 4 deletions internal/client/cfcrypto/cfcrypto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func TestHandshake_encryptedClientHello(t *testing.T) {
}

func TestHandshake_postQuantum(t *testing.T) {
const domainName = "pq.cloudflareresearch.com"
const domainName = "cloudflare.com"
const path = "cdn-cgi/trace"

out, err := output.NewOutput("", false)
require.NoError(t, err)
Expand All @@ -81,7 +82,7 @@ func TestHandshake_postQuantum(t *testing.T) {
require.NoError(t, err)

tlsConf := &tls.Config{
ServerName: "pq.cloudflareresearch.com",
ServerName: domainName,
NextProtos: []string{"http/1.1"},
}

Expand All @@ -94,7 +95,7 @@ func TestHandshake_postQuantum(t *testing.T) {
tlsConn, err := cfcrypto.Handshake(conn, tlsConf, nil, cfg, out)
require.NoError(t, err)

u := fmt.Sprintf("https://%s/", domainName)
u := fmt.Sprintf("https://%s/%s", domainName, path)
req, err := http.NewRequest(http.MethodGet, u, nil)
require.NoError(t, err)

Expand All @@ -115,5 +116,5 @@ func TestHandshake_postQuantum(t *testing.T) {
require.NotEmpty(t, body)

bodyStr := string(body)
require.Contains(t, bodyStr, "You are using <em>X25519Kyber768Draft00</em>")
require.Contains(t, bodyStr, "kex=X25519Kyber768Draft00")
}

0 comments on commit fa0e95a

Please sign in to comment.