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

feat(hax): add extract-handshake to the driver #92

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading