rfc822: Index headers by name
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 Oct 2012 14:19:10 +0000 (01:19 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 Oct 2012 14:19:10 +0000 (01:19 +1100)
commit127c7534fc4aaa9499c552fdd3e4e9e56c16ca40
treed264adfcd2dc88720e2c17b5eec9d57d26b5f17b
parentf71d6c64922b68fe3a785ec3a9faf093ef9299e1
rfc822: Index headers by name

Replace the current brute force implementation of
rfc822_next_header_of_name() with one using a hash table to (lazily) index
the header fields by name.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/rfc822/rfc822.c
ccan/rfc822/rfc822.h