Initial code for digest authentication