Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented May 25, 2016

To enable TLSv1.2 capability for vhd-tool/sparse_dd,
This changes add 3 new options to CLI parameters,

ssl_legacy: boolean, allow all protocol versions instead of default TLSv1.2
good_ciphersuites: string, SSL good cipher suites for TLS protocols
legacy_ciphersuites: optional string, SSL legacy cipher suites for TLS protocols

Signed-off-by: Phus Lu phus.lu@citrix.com

@ghost
Copy link
Author

ghost commented May 25, 2016

DONT merge, just for review currently. /cc @thomassa

@ghost
Copy link
Author

ghost commented May 25, 2016

Basically verified, @thomassa , are you happy to start review it now 😃

@simonjbeaumont
Copy link
Collaborator

Review from @thomassa specifically requested. He's off sick today so assigning to him and adding the blocked label so he can pick them up on his return.

@simonjbeaumont
Copy link
Collaborator

simonjbeaumont commented May 31, 2016

The CI for this was blocked because the OPAM file in the repo was not passing lint. I've fixed this here #27. By fixed, I mean I've disabled lint in the CI job. This is the best we can do because we are not upstream for this repo.

@simonjbeaumont
Copy link
Collaborator

simonjbeaumont commented May 31, 2016

I've restarted the travis job. You should be able to expect one of the subjobs to pass (the OCaml 4.01 one: https://travis-ci.org/xapi-project/vhd-tool/jobs/132751108) -- scrap that, the CI for this repo is more broken that I thought :)

@simonjbeaumont
Copy link
Collaborator

@thomassa has returned so I'll remove the blocked label.

src/channels.ml Outdated

let of_ssl_fd fd ssl_legacy good_ciphersuites legacy_ciphersuites =
let good_ciphersuites = match good_ciphersuites with None -> failwith "good_ciphersuites not specified" | Some x -> x in
let legacy_ciphersuites = match legacy_ciphersuites with None -> failwith "legacy_ciphersuites not specified" | Some x -> x in
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifying legacy_ciphersuites should be optional. So this line should be
let legacy_ciphersuites = match legacy_ciphersuites with None -> "" | Some x -> x in

@thomassa
Copy link

thomassa commented Jun 2, 2016

The commit message needs a brief description of the new functionality.

@ghost
Copy link
Author

ghost commented Jun 3, 2016

Thanks for @thomassa comments. I reworked the commit.

For docstring in https://github.com/xapi-project/vhd-tool/pull/26/files#diff-37fdba691cdb40a308c807f7605ba30bR72

I leave a leading space for them, to make sparse_dd --help output pretty.

src/main.ml Outdated
Arg.(value & flag & info ["ssl-legacy"] ~doc)

let good_ciphersuites =
let doc = "SSL good cipher suites for TLS protocols" in
Copy link

@thomassa thomassa Jun 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description for good_ciphersuites:
let doc = "The list of ciphersuites to allow for TLS" in

@thomassa
Copy link

thomassa commented Jun 3, 2016

Thank you: that looks good now except for the two remaining doc strings in main.ml.

To enable TLSv1.2 capability for vhd-tool/sparse_dd,
This changes add 3 new options to CLI parameters,

ssl_legacy: boolean, allow all protocol versions instead of default TLSv1.2
good_ciphersuites: string, SSL good cipher suites for TLS protocols
legacy_ciphersuites: optional string, SSL legacy cipher suites for TLS protocols

Signed-off-by: Phus Lu <phus.lu@citrix.com>
@ghost
Copy link
Author

ghost commented Jun 3, 2016

Thanks @thomassa .
Updated the doc strings. :)

@thomassa
Copy link

thomassa commented Jun 3, 2016

@phusl All good!

The CI test-build is still failing (because of badly-defined dependencies in opam, and bad packaging-instructions).

So I'm considering merging this anyway...

@thomassa thomassa merged commit 82279da into xapi-project:trunk-ring3 Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants