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

Refactor simple_https_server and add self-test. #46

Merged
merged 18 commits into from
Sep 26, 2022

Conversation

duesee
Copy link
Contributor

@duesee duesee commented Sep 19, 2022

This PR partially addresses #7 as it implements the self-test.

The functions read_bytes, read_record, put_record, and get_ccs_message were replaced by the RecordStream implementation as already done for the client code. Thus, client and server now share functionality.

Motivation and Context

The refactoring is required to make the Bertie server code callable via Rust.

Checklist

  • I have linked an issue to this PR (partial fix only)
  • I have described the changes
  • I have read and understood the code of conduct, contribution guidelines, and contributor license agreement
  • I have added tests for all changes
  • I have tested that all tests pass locally and all checks pass
  • I have updated documentation if necessary

…se` workspace member.

Note: In the next step that code will be reused by `simple_https_server`.
Note: This is used in both client and server.
Note: This is used in the next commit to implement the self-test.
Test if Bertie's `simple_https_client` can finish the handshake with
Bertie's `simple_https_server`.
@duesee duesee requested a review from a team as a code owner September 19, 2022 11:25
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Thanks, generally looks good to me. But can you add some description to the new crate and some of the new things?

base/Cargo.toml Outdated Show resolved Hide resolved
base/Cargo.toml Outdated Show resolved Hide resolved
base/src/lib.rs Outdated Show resolved Hide resolved
simple_https_server/src/lib.rs Show resolved Hide resolved
simple_https_server/src/lib.rs Show resolved Hide resolved
simple_https_server/src/lib.rs Outdated Show resolved Hide resolved
simple_https_server/src/lib.rs Show resolved Hide resolved
@duesee duesee mentioned this pull request Sep 21, 2022
3 tasks
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Let's somehow resolve the last remaining comment, then this is good to go.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
simple_https_server/src/lib.rs Outdated Show resolved Hide resolved
duesee and others added 6 commits September 22, 2022 10:43
Co-authored-by: Franziskus Kiefer <franziskuskiefer@gmail.com>
Co-authored-by: Franziskus Kiefer <franziskuskiefer@gmail.com>
* Cleanup
* Add tracing
* Handle errors better
@franziskuskiefer franziskuskiefer enabled auto-merge (rebase) September 26, 2022 09:01
@franziskuskiefer franziskuskiefer merged commit 6858c35 into main Sep 26, 2022
@franziskuskiefer franziskuskiefer deleted the duesee_tests_self_test branch September 26, 2022 09:13
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