SSLerr(SSL_F_SSL3_GET_SERVER_HELLO,SSL_R_WRONG_SSL_VERSION);
SSLerr(SSL_F_DTLS1_GET_HELLO_VERIFY,SSL_R_WRONG_SSL_VERSION);
static int dtls1_get_hello_verify(SSL *s)	{	int n, al, ok = 0;	unsigned char *data;	unsigned int cookie_len;	n=s->method->ssl_get_message(s,		DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A,		DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B,		-1,		s->max_cert_list,		&ok);	if (!ok) return((int)n);	if (s->s3->tmp.message_type != DTLS1_MT_HELLO_VERIFY_REQUEST)		{		s->d1->send_cookie = 0;		s->s3->tmp.reuse_message=1;		return(1);		}	data = (unsigned char *)s->init_msg;	if ((data[0] != (s->version>>8)) || (data[1] != (s->version&0xff)))		{		SSLerr(SSL_F_SSL3_GET_SERVER_HELLO,SSL_R_WRONG_SSL_VERSION);		s->version=(s->version&0xff00)|data[1];		al = SSL_AD_PROTOCOL_VERSION;		goto f_err;		}	data+=2;	cookie_len = *(data++);	if ( cookie_len > sizeof(s->d1->cookie))		{		al=SSL_AD_ILLEGAL_PARAMETER;		goto f_err;		}	memcpy(s->d1->cookie, data, cookie_len);	s->d1->cookie_len = cookie_len;	s->d1->send_cookie = 1;	return 1;f_err:	ssl3_send_alert(s, SSL3_AL_FATAL, al);	return -1;	}