wahern / dns

dns.c: Single file non-blocking DNS C library without callbacks or external dependencies.
http://25thandclement.com/~william/projects/dns.c.html
MIT License
256 stars 64 forks source link

SPF Without Ragel #11

Open wahern opened 8 years ago

wahern commented 8 years ago

Reimplement Ragel-based policy parser in basic C. The Ragel requirement turns some people off. In this case it should be easy to reimplement. The new implementation should taking into account the remainder of the SPF test suite. We fail some tests because the SPF grammar is ambiguous and the test suite assumes reliance on using naive regular expressions to parse the policy.