From a178a23ee724d3041c2401e2c20ccad97962d8c8 Mon Sep 17 00:00:00 2001 From: monica Date: Wed, 4 Jan 2023 16:43:06 -0500 Subject: [PATCH] corrected comment --- zssp/src/applicationlayer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zssp/src/applicationlayer.rs b/zssp/src/applicationlayer.rs index b07af5d67..80810944b 100644 --- a/zssp/src/applicationlayer.rs +++ b/zssp/src/applicationlayer.rs @@ -64,9 +64,8 @@ pub trait ApplicationLayer: Sized { /// Check whether a new session should be accepted. /// - /// On success a tuple of local session ID, static secret, and associated object is returned. The - /// static secret is whatever results from agreement between the local and remote static public - /// keys. + /// On success a tuple of local session ID, psk, and associated object is returned. + /// Set psk to all zeros if one is not in use with the remote party. /// /// When `accept_new_session` is called, `remote_static_public` and `remote_metadata` have not yet been /// authenticated. As such avoid mutating state until OkNewSession(Session) is returned, as the connection