119 #include <openssl/fips.h>
122 static const SSL_METHOD *ssl23_get_server_method(
int ver);
124 static const SSL_METHOD *ssl23_get_server_method(
int ver)
126 #ifndef OPENSSL_NO_SSL2
145 ssl23_get_server_method)
150 unsigned long Time=(
unsigned long)time(NULL);
159 if (s->info_callback != NULL)
161 else if (s->ctx->info_callback != NULL)
162 cb=s->ctx->info_callback;
184 if (s->init_buf == NULL)
202 s->ctx->stats.sess_accept++;
211 if (ret >= 0)
cb=NULL;
222 if ((
cb != NULL) && (s->state != state))
253 char *buf= &(buf_space[0]);
254 unsigned char *
p,*d,*d_len,*dd;
256 unsigned int csl,sil,cl;
269 if (n !=
sizeof buf_space)
return(n);
280 if ((p[3] == 0x00) && (p[4] == 0x02))
282 v[0]=p[3]; v[1]=p[4];
289 v[0]=p[3]; v[1]=p[4];
337 ((p[3] == 0 && p[4] < 5 )
353 if (p[3] == 0 && p[4] < 6)
413 else if ((strncmp(
"GET ", (
char *)p,4) == 0) ||
414 (strncmp(
"POST ",(
char *)p,5) == 0) ||
415 (strncmp(
"HEAD ",(
char *)p,5) == 0) ||
416 (strncmp(
"PUT ", (
char *)p,4) == 0))
421 else if (strncmp(
"CONNECT",(
char *)p,7) == 0)
447 n=((p[0]&0x7f)<<8)|p[1];
455 if (j <= 0)
return(j);
499 for (i=0; i<csl; i+=3)
501 if (p[i] != 0)
continue;
522 l2n3((
long)i, d_len);
535 #ifdef OPENSSL_NO_SSL2
581 if ((type == 2) || (type == 3))
625 if ((type < 1) || (type > 3))