if(ssl) { SSL_free(ssl); ssl = 0; } if(context) { SSL_CTX_free(context); context = 0; } if(cert) { delete cert; cert = 0; } if(key) { delete key; key = 0; }  sendQueue.resize(0); recvQueue.resize(0); mode = Idle; cc.reset(); vr = QCA::TLS::Unknown; v_eof = false;
SHA1_Init(&c);
	void reset()	{		if(ssl) {			SSL_free(ssl);			ssl = 0;		}		if(context) {			SSL_CTX_free(context);			context = 0;		}		if(cert) {			delete cert;			cert = 0;		}		if(key) {			delete key;			key = 0;		}		sendQueue.resize(0);		recvQueue.resize(0);		mode = Idle;		cc.reset();		vr = QCA::TLS::Unknown;		v_eof = false;	}