Short-term refactoring: - SSUSession:637, SSUSession:635 get rid of casting to SSUHeader - Idenity.cpp:156 check for self asignment Long-term refactoring: - Rely on a library for TLS and SSL. Additions: - Write tests. - Add documentation.