Skip to content

Commit

Permalink
Merge pull request #92 from cryspen/lucas/driver-extract-handshake
Browse files Browse the repository at this point in the history
feat(hax): add `extract-handshake` to the driver
  • Loading branch information
W95Psp authored Mar 4, 2024
2 parents 99726ee + 842e0dd commit 906df6b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hax-driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def shell(command, expect=0, cwd=None, env={}):
help="Extract and typecheck F* etc. from the Bertie Rust code.",
)
extract_parser = sub_parser.add_parser("extract")
extract_parser = sub_parser.add_parser("extract-handshake")

typecheck_parser = sub_parser.add_parser("typecheck")
typecheck_parser.add_argument(
Expand Down Expand Up @@ -78,6 +79,22 @@ def shell(command, expect=0, cwd=None, env={}):
"-i",
"-**::non_hax::** -bertie::stream::**",
"fstar",
"--interfaces",
"+**"
],
cwd=".",
env=hax_env,
)
elif options.sub == "extract-handshake":
# The extract sub command.
shell(
cargo_hax_into
+ [
"-i",
"-** +~bertie::tls13handshake::**",
"fstar",
"--interfaces",
"+!** +bertie::tls13handshake::**"
],
cwd=".",
env=hax_env,
Expand Down

0 comments on commit 906df6b

Please sign in to comment.