volker's add_signature() fix; must pass the beginning on the outbuf to get the flags...