Add Hasl.Context:server-mechanisms

Review Request #3731 — Created Jan. 3, 2025 and submitted

Information

hasl/hasl
default

Reviewers

This allows users to set both allowed and server mechanisms and lets hasl
determine which to use, preferring allowed over the server advertised ones.

Ran the new tests under valgrind and called in the turtles for the rest.

Summary ID
Add Hasl.Context:server-mechanisms
This lets allows users to set both allowed and server mechanisms and lets hasl determine which to use, preferring allowed over the server advertised ones.
3a7bc97aac9bcebf11d565d25e065085d7e11002
Description From Last Updated

Should you not be taking the union of allowed and server-advertised mechanisms when both are specified?

QuLogicQuLogic

s/fallback/fall back/

QuLogicQuLogic
QuLogic
  1. 
      
  2. Show all issues

    Should you not be taking the union of allowed and server-advertised mechanisms when both are specified?

    1. Server advertisments aren't a requirement and even then, they don't necessarily advertise everything they support. I thought libera did this but I can't seem to verify that right now. But regardless, server advertisement is protocol specific so there's never going to be anyting consistent spec/implementation wise.

      That said, I'm wondering if we should automatically use the supported mechanisms if allowed and server mechanisms is empty. That seems okay I think?

    2. I end up using available mechanisms if no mechanisms were specified.

  3. 
      
grim
QuLogic
QuLogic
  1. Ship It!
  2. hasl/haslcontext.c (Diff revision 2)
     
     
    Show all issues

    s/fallback/fall back/

  3. 
      
grim
grim
Review request changed
Status:
Completed