Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Improve docs on caching_sha2_password packets
  • Loading branch information
blackbeam authored Jan 12, 2024
1 parent 9c2b718 commit 9ddcb00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/packets/caching_sha2_password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ define_header!(
0x02
);

/// A request for a public RSA key, used by some authentication mechanisms
/// to add a layer of protection to an unsecured channel.
/// A client request for a server public RSA key, used by some authentication mechanisms
/// to add a layer of protection to an unsecured channel (see [`PublicKeyResponse`]).
///
/// [`PublicKeyResponse`]: crate::packets::PublicKeyResponse
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct PublicKeyRequest {
__header: PublicKeyRequestHeader,
Expand Down
4 changes: 3 additions & 1 deletion src/packets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,9 @@ define_header!(
0x01
);

/// A response containing a public RSA key for authentication protection.
/// A server response to a [`PublicKeyRequest`] containing a public RSA key for authentication protection.
///
/// [`PublicKeyRequest`]: crate::packets::caching_sha2_password::PublicKeyRequest
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct PublicKeyResponse<'a> {
__header: PublicKeyResponseHeader,
Expand Down

0 comments on commit 9ddcb00

Please sign in to comment.