Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort the pinsets and add logging for debugging. #91

Merged
merged 3 commits into from
Dec 6, 2016
Merged

Sort the pinsets and add logging for debugging. #91

merged 3 commits into from
Dec 6, 2016

Conversation

martijnc
Copy link
Contributor

Not intended to be merged, this PR is just easier to link to.

These changes are for debugging and testing. Sorting the pinsets mimics the behaviour of having them in an std::map. Having the pinsets in different order would result in different pinset IDs, which results in a different trie output, sorting them solves that and makes testing easier.

@martijnc martijnc closed this Nov 30, 2016
@lgarron
Copy link
Collaborator

lgarron commented Dec 1, 2016

Did you close this intentionally?

@martijnc
Copy link
Contributor Author

martijnc commented Dec 3, 2016

Reopened in case you want to merge this.

I'll update this PR so that the hashes of the pins are printed in alphabetic order as well.

@martijnc martijnc reopened this Dec 3, 2016
@lgarron lgarron merged commit f279017 into chromium:master Dec 6, 2016
@lgarron
Copy link
Collaborator

lgarron commented Dec 6, 2016

Thanks!

MXEBot pushed a commit to mirror/chromium that referenced this pull request Dec 14, 2016
This tool is a C++ port of the Go script [1] currently used to generate the
static (preloaded) domain security state
(net/http/transport_security_state_static.h) blob.

A follow up CL [2] integrates this script into the build process.

This scripts generates identical outputs as the Go script after merging [3]. The
only difference should be related to whitespace and comments.

You can run the script manually:
out/Default/domain_security_preload_generator net/http/transport_security_state_static.json net/http/transport_security_state_static.pins net/tools/domain_security_preload_generator/resources/transport_security_state_static.template /home/you/output.h -v

[1] https://github.com/chromium/hstspreload/blob/master/cmd/transport_security_state_static_generate/transport_security_state_static_generate.go
[2] https://codereview.chromium.org/2551943002
[3] chromium/hstspreload#91

BUG=595493
[email protected], [email protected]

Review-Url: https://codereview.chromium.org/2551153003 .
Cr-Commit-Position: refs/heads/master@{#438316}
MXEBot pushed a commit to mirror/chromium that referenced this pull request Dec 14, 2016
This tool is a C++ port of the Go script [1] currently used to generate the
static (preloaded) domain security state
(net/http/transport_security_state_static.h) blob.

A follow up CL [2] integrates this tool into the build process.

This tool generates identical outputs as the Go script after merging [3]. The
only difference should be related to whitespace and comments.

You can run the tool manually:
out/Default/domain_security_preload_generator net/http/transport_security_state_static.json net/http/transport_security_state_static.pins net/tools/domain_security_preload_generator/resources/transport_security_state_static.template /home/you/output.h -v

[1] https://github.com/chromium/hstspreload/blob/master/cmd/transport_security_state_static_generate/transport_security_state_static_generate.go
[2] https://codereview.chromium.org/2551943002
[3] chromium/hstspreload#91

BUG=595493
[email protected], [email protected]

Committed: https://chromium.googlesource.com/chromium/src/+/09983e3dcc7573863a52ef827870613dde3cd83e
Review-Url: https://codereview.chromium.org/2551153003
Cr-Commit-Position: refs/heads/master@{#438358}
jelmansouri pushed a commit to jelmansouri/chromium-net that referenced this pull request Mar 7, 2017
This tool is a C++ port of the Go script [1] currently used to generate the
static (preloaded) domain security state
(net/http/transport_security_state_static.h) blob.

A follow up CL [2] integrates this script into the build process.

This scripts generates identical outputs as the Go script after merging [3]. The
only difference should be related to whitespace and comments.

You can run the script manually:
out/Default/domain_security_preload_generator net/http/transport_security_state_static.json net/http/transport_security_state_static.pins net/tools/domain_security_preload_generator/resources/transport_security_state_static.template /home/you/output.h -v

[1] https://github.com/chromium/hstspreload/blob/master/cmd/transport_security_state_static_generate/transport_security_state_static_generate.go
[2] https://codereview.chromium.org/2551943002
[3] chromium/hstspreload#91

BUG=595493
[email protected], [email protected]

Review-Url: https://codereview.chromium.org/2551153003 .
Cr-Original-Commit-Position: refs/heads/master@{#438316}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 09983e3dcc7573863a52ef827870613dde3cd83e
jelmansouri pushed a commit to jelmansouri/chromium-net that referenced this pull request Mar 7, 2017
This tool is a C++ port of the Go script [1] currently used to generate the
static (preloaded) domain security state
(net/http/transport_security_state_static.h) blob.

A follow up CL [2] integrates this tool into the build process.

This tool generates identical outputs as the Go script after merging [3]. The
only difference should be related to whitespace and comments.

You can run the tool manually:
out/Default/domain_security_preload_generator net/http/transport_security_state_static.json net/http/transport_security_state_static.pins net/tools/domain_security_preload_generator/resources/transport_security_state_static.template /home/you/output.h -v

[1] https://github.com/chromium/hstspreload/blob/master/cmd/transport_security_state_static_generate/transport_security_state_static_generate.go
[2] https://codereview.chromium.org/2551943002
[3] chromium/hstspreload#91

BUG=595493
[email protected], [email protected]

Committed: https://chromium.googlesource.com/chromium/src/+/09983e3dcc7573863a52ef827870613dde3cd83e
Review-Url: https://codereview.chromium.org/2551153003
Cr-Original-Commit-Position: refs/heads/master@{#438358}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 40db4b769e07e2e2a7ccbdcf5a8d734a1385c32b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants