Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
fix: remove verbose debug info
  • Loading branch information
3andne committed Mar 9, 2023
1 parent 3ff00da commit 3ea5f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,5 @@ To deploy a Restls Service:
host: "vscode.dev" # Must be a TLS 1.2 server
password: [YOUR_RESTLS_PASSWORD]
version-hint: "tls12"
curve-id-hint: "curvep384" # One of: x25519, curvep384, curvep521 or curvep256
# If you have no idea, just choose a random one.
# If that's incorrect, your first connection will fail.
# But the client will correct that for you.
client-id: firefox # One of: chrome, ios, firefox or safari
```
5 changes: 2 additions & 3 deletions src/restls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,12 @@ impl<'a> RestlsState<'a> {
let expect_auth = hmac_auth.finalize().into_bytes();
if actual_auth != &expect_auth[..RESTLS_APPDATA_HMAC_LEN] {
debug!(
"[{}]bad mac record, expect auth {:?}, actual {:?}, to_client: {}, to_server: {}, record: {:?}",
"[{}]bad mac record, expect auth {:?}, actual {:?}, to_client: {}, to_server: {}",
self.id,
&expect_auth[..RESTLS_APPDATA_HMAC_LEN],
actual_auth,
self.to_client_counter,
self.to_server_counter,
record,
);
return Err(anyhow!("reject: bad mac record"));
}
Expand Down Expand Up @@ -574,7 +573,7 @@ impl<'a> RestlsState<'a> {
self.check_tls12_session_ticket()?;
}
self.prepare_server_auth(outbound);
debug!("[{}]sending tls12 server auth to client {:?}", self.id, outbound.codec_mut().peek_record_mut());
debug!("[{}]sending tls12 server auth to client", self.id);
return Ok(());
}
let record = outbound.codec_mut().peek_record_mut().unwrap();
Expand Down

0 comments on commit 3ea5f14

Please sign in to comment.