Implement Hasl.Gs2Header.parse

Review Request #3813 — Created Feb. 4, 2025 and submitted

Information

hasl/hasl
default

Reviewers

Add a method to parse gs2 headers as we need to do that to implement scram.

Ran the tests under valgrind and called in the turtles as well.

Summary ID
Initial work towards GS2 Header parsing
6d9be253399b6c2fc9e2ad27acc3363785c79496
Description From Last Updated

There's a space too many after GMatchInfo.

ivanhoeivanhoe

regex and info are not unref'd in case of this early return.

ivanhoeivanhoe

regex and info are not unref'd in case of this early return.

ivanhoeivanhoe

The "otherwise null" is superfluous since it's already declared as nullable.

ivanhoeivanhoe
ivanhoe
  1. 
      
  2. hasl/haslgs2header.c (Diff revision 1)
     
     
    Show all issues

    There's a space too many after GMatchInfo.

  3. hasl/haslgs2header.c (Diff revision 1)
     
     
    Show all issues

    regex and info are not unref'd in case of this early return.

  4. hasl/haslgs2header.c (Diff revision 1)
     
     
    Show all issues

    regex and info are not unref'd in case of this early return.

  5. hasl/haslgs2header.h (Diff revision 1)
     
     
    Show all issues

    The "otherwise null" is superfluous since it's already declared as nullable.

  6. 
      
grim
ivanhoe
  1. Ship It!
  2. 
      
grim
Review request changed
Status:
Completed