Lines Matching refs:s3

2937 	return (s->s3->rrec.type == SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0;
2942 SSL3_STATE *s3;
2944 if ((s3=OPENSSL_malloc(sizeof *s3)) == NULL) goto err;
2945 memset(s3,0,sizeof *s3);
2946 memset(s3->rrec.seq_num,0,sizeof(s3->rrec.seq_num));
2947 memset(s3->wrec.seq_num,0,sizeof(s3->wrec.seq_num));
2949 s->s3=s3;
2966 if (s->s3->client_opaque_prf_input != NULL)
2967 OPENSSL_free(s->s3->client_opaque_prf_input);
2968 if (s->s3->server_opaque_prf_input != NULL)
2969 OPENSSL_free(s->s3->server_opaque_prf_input);
2973 if (s->s3->rbuf.buf != NULL)
2975 if (s->s3->wbuf.buf != NULL)
2977 if (s->s3->rrec.comp != NULL)
2978 OPENSSL_free(s->s3->rrec.comp);
2980 if (s->s3->tmp.dh != NULL)
2981 DH_free(s->s3->tmp.dh);
2984 if (s->s3->tmp.ecdh != NULL)
2985 EC_KEY_free(s->s3->tmp.ecdh);
2988 if (s->s3->tmp.ca_names != NULL)
2989 sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free);
2990 if (s->s3->handshake_buffer) {
2991 BIO_free(s->s3->handshake_buffer);
2993 if (s->s3->handshake_dgst) ssl3_free_digest_list(s);
2997 OPENSSL_cleanse(s->s3,sizeof *s->s3);
2998 OPENSSL_free(s->s3);
2999 s->s3=NULL;
3009 if (s->s3->client_opaque_prf_input != NULL)
3010 OPENSSL_free(s->s3->client_opaque_prf_input);
3011 s->s3->client_opaque_prf_input = NULL;
3012 if (s->s3->server_opaque_prf_input != NULL)
3013 OPENSSL_free(s->s3->server_opaque_prf_input);
3014 s->s3->server_opaque_prf_input = NULL;
3018 if (s->s3->tmp.ca_names != NULL)
3019 sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free);
3021 if (s->s3->rrec.comp != NULL)
3023 OPENSSL_free(s->s3->rrec.comp);
3024 s->s3->rrec.comp=NULL;
3027 if (s->s3->tmp.dh != NULL)
3029 DH_free(s->s3->tmp.dh);
3030 s->s3->tmp.dh = NULL;
3034 if (s->s3->tmp.ecdh != NULL)
3036 EC_KEY_free(s->s3->tmp.ecdh);
3037 s->s3->tmp.ecdh = NULL;
3042 s->s3->is_probably_safari = 0;
3046 rp = s->s3->rbuf.buf;
3047 wp = s->s3->wbuf.buf;
3048 rlen = s->s3->rbuf.len;
3049 wlen = s->s3->wbuf.len;
3050 init_extra = s->s3->init_extra;
3051 if (s->s3->handshake_buffer) {
3052 BIO_free(s->s3->handshake_buffer);
3053 s->s3->handshake_buffer = NULL;
3055 if (s->s3->handshake_dgst) {
3058 memset(s->s3,0,sizeof *s->s3);
3059 s->s3->rbuf.buf = rp;
3060 s->s3->wbuf.buf = wp;
3061 s->s3->rbuf.len = rlen;
3062 s->s3->wbuf.len = wlen;
3063 s->s3->init_extra = init_extra;
3068 s->s3->renegotiate=0;
3069 s->s3->total_renegotiations=0;
3070 s->s3->num_renegotiations=0;
3071 s->s3->in_read_app_data=0;
3123 ret=s->s3->num_renegotiations;
3126 ret=s->s3->num_renegotiations;
3127 s->s3->num_renegotiations=0;
3130 ret=s->s3->total_renegotiations;
3133 ret=(int)(s->s3->flags);
4060 if ((alg_k & SSL_kEECDH) && (alg_a & SSL_aECDSA) && s->s3->is_probably_safari)
4078 alg_k = s->s3->tmp.new_cipher->algorithm_mkey;
4158 * to be written, s->s3->alert_dispatch will be true */
4159 if (s->s3->alert_dispatch)
4162 else if (s->s3->alert_dispatch)
4188 !s->s3->alert_dispatch)
4206 if (s->s3->renegotiate) ssl3_renegotiate_check(s);
4213 if ((s->s3->flags & SSL3_FLAGS_POP_BUFFER) && (s->wbio == s->bbio))
4216 if (s->s3->delay_buf_pop_ret == 0)
4222 s->s3->delay_buf_pop_ret=ret;
4232 s->s3->flags&= ~SSL3_FLAGS_POP_BUFFER;
4234 ret=s->s3->delay_buf_pop_ret;
4235 s->s3->delay_buf_pop_ret=0;
4252 if (s->s3->renegotiate) ssl3_renegotiate_check(s);
4253 s->s3->in_read_app_data=1;
4255 if ((ret == -1) && (s->s3->in_read_app_data == 2))
4267 s->s3->in_read_app_data=0;
4287 if (s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS)
4290 s->s3->renegotiate=1;
4298 if (s->s3->renegotiate)
4300 if ( (s->s3->rbuf.left == 0) &&
4301 (s->s3->wbuf.left == 0) &&
4310 s->s3->renegotiate=0;
4311 s->s3->num_renegotiations++;
4312 s->s3->total_renegotiations++;
4323 long alg2 = s->s3->tmp.new_cipher->algorithm2;