Lines Matching refs:s3

2117 	return (s->s3->rrec.type == SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0;
2122 SSL3_STATE *s3;
2124 if ((s3=OPENSSL_malloc(sizeof *s3)) == NULL) goto err;
2125 memset(s3,0,sizeof *s3);
2126 memset(s3->rrec.seq_num,0,sizeof(s3->rrec.seq_num));
2127 memset(s3->wrec.seq_num,0,sizeof(s3->wrec.seq_num));
2129 s->s3=s3;
2143 if (s->s3->client_opaque_prf_input != NULL)
2144 OPENSSL_free(s->s3->client_opaque_prf_input);
2145 if (s->s3->server_opaque_prf_input != NULL)
2146 OPENSSL_free(s->s3->server_opaque_prf_input);
2150 if (s->s3->rbuf.buf != NULL)
2152 if (s->s3->wbuf.buf != NULL)
2154 if (s->s3->rrec.comp != NULL)
2155 OPENSSL_free(s->s3->rrec.comp);
2157 if (s->s3->tmp.dh != NULL)
2158 DH_free(s->s3->tmp.dh);
2161 if (s->s3->tmp.ecdh != NULL)
2162 EC_KEY_free(s->s3->tmp.ecdh);
2165 if (s->s3->tmp.ca_names != NULL)
2166 sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free);
2167 if (s->s3->handshake_buffer) {
2168 BIO_free(s->s3->handshake_buffer);
2170 if (s->s3->handshake_dgst) ssl3_free_digest_list(s);
2171 OPENSSL_cleanse(s->s3,sizeof *s->s3);
2172 OPENSSL_free(s->s3);
2173 s->s3=NULL;
2182 if (s->s3->client_opaque_prf_input != NULL)
2183 OPENSSL_free(s->s3->client_opaque_prf_input);
2184 s->s3->client_opaque_prf_input = NULL;
2185 if (s->s3->server_opaque_prf_input != NULL)
2186 OPENSSL_free(s->s3->server_opaque_prf_input);
2187 s->s3->server_opaque_prf_input = NULL;
2191 if (s->s3->tmp.ca_names != NULL)
2192 sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free);
2194 if (s->s3->rrec.comp != NULL)
2196 OPENSSL_free(s->s3->rrec.comp);
2197 s->s3->rrec.comp=NULL;
2200 if (s->s3->tmp.dh != NULL)
2201 DH_free(s->s3->tmp.dh);
2204 if (s->s3->tmp.ecdh != NULL)
2205 EC_KEY_free(s->s3->tmp.ecdh);
2208 rp = s->s3->rbuf.buf;
2209 wp = s->s3->wbuf.buf;
2210 rlen = s->s3->rbuf.len;
2211 wlen = s->s3->wbuf.len;
2212 if (s->s3->handshake_buffer) {
2213 BIO_free(s->s3->handshake_buffer);
2214 s->s3->handshake_buffer = NULL;
2216 if (s->s3->handshake_dgst) {
2219 memset(s->s3,0,sizeof *s->s3);
2220 s->s3->rbuf.buf = rp;
2221 s->s3->wbuf.buf = wp;
2222 s->s3->rbuf.len = rlen;
2223 s->s3->wbuf.len = wlen;
2228 s->s3->renegotiate=0;
2229 s->s3->total_renegotiations=0;
2230 s->s3->num_renegotiations=0;
2231 s->s3->in_read_app_data=0;
2267 ret=s->s3->num_renegotiations;
2270 ret=s->s3->num_renegotiations;
2271 s->s3->num_renegotiations=0;
2274 ret=s->s3->total_renegotiations;
2277 ret=(int)(s->s3->flags);
3089 alg_k = s->s3->tmp.new_cipher->algorithm_mkey;
3169 * to be written, s->s3->alert_dispatch will be true */
3170 if (s->s3->alert_dispatch)
3173 else if (s->s3->alert_dispatch)
3199 !s->s3->alert_dispatch)
3217 if (s->s3->renegotiate) ssl3_renegotiate_check(s);
3224 if ((s->s3->flags & SSL3_FLAGS_POP_BUFFER) && (s->wbio == s->bbio))
3227 if (s->s3->delay_buf_pop_ret == 0)
3233 s->s3->delay_buf_pop_ret=ret;
3243 s->s3->flags&= ~SSL3_FLAGS_POP_BUFFER;
3245 ret=s->s3->delay_buf_pop_ret;
3246 s->s3->delay_buf_pop_ret=0;
3263 if (s->s3->renegotiate) ssl3_renegotiate_check(s);
3264 s->s3->in_read_app_data=1;
3266 if ((ret == -1) && (s->s3->in_read_app_data == 2))
3278 s->s3->in_read_app_data=0;
3298 if (s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS)
3301 s->s3->renegotiate=1;
3309 if (s->s3->renegotiate)
3311 if ( (s->s3->rbuf.left == 0) &&
3312 (s->s3->wbuf.left == 0) &&
3321 s->s3->renegotiate=0;
3322 s->s3->num_renegotiations++;
3323 s->s3->total_renegotiations++;