look here for an overview. and RFC 1945 for details.