s->state=SSL_ST_BEFORE;
void SSL_clear(s)SSL *s;	{	int state;	if (s->method == NULL) return;	s->error=0;	s->hit=0;	/* This is set if we are doing dynamic renegotiation so keep	 * the old cipher.  It is sort of a SSL_clear_lite :-) */	if (s->new_session) return;	state=s->state; /* Keep to check if we throw away the session-id */	s->type=0;	s->version=s->method->version;	s->rwstate=SSL_NOTHING;	s->state=SSL_ST_BEFORE;	s->rstate=SSL_ST_READ_HEADER;	s->read_ahead=s->ctx->default_read_ahead;/*	s->shutdown=(SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN); */	if (s->init_buf != NULL)		{		BUF_MEM_free(s->init_buf);		s->init_buf=NULL;		}	ssl_clear_cipher_ctx(s);	if (ssl_clear_bad_session(s))		{		SSL_SESSION_free(s->session);		s->session=NULL;		}	s->shutdown=(SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);	s->first_packet=0;	s->method->ssl_clear(s);	}