On 7/13/2018 11:34 AM, Xuelei Fan wrote:

PreSharedKeyExtension.java
--------------------------
The local supported signature algorithms are checked in the canRejoin() method.  Should the peer supported signature algorithms be checked as well?

I don't think so. When the peer creates its PreSharedKeyExtension, it should only offer sessions (i.e. PSK identities) that it is willing to resume. This includes checking for its supported signature algorithms, or any checks that are required by its policy. If the server gets a PSK identity from the client, then server should use that PSK to resume a session as long as it is acceptable according to the server's policy. Trying to figure out the peer's policy and enforce it is error prone and adds unnecessary complexity.

Though maybe I'm missing some other motivation to add this check.

Reply via email to