Lines Matching refs:s3
2937 return (s->s3->rrec.type == SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0; in ssl3_pending()
2942 SSL3_STATE *s3; in ssl3_new() local
2944 if ((s3=OPENSSL_malloc(sizeof *s3)) == NULL) goto err; in ssl3_new()
2945 memset(s3,0,sizeof *s3); in ssl3_new()
2946 memset(s3->rrec.seq_num,0,sizeof(s3->rrec.seq_num)); in ssl3_new()
2947 memset(s3->wrec.seq_num,0,sizeof(s3->wrec.seq_num)); in ssl3_new()
2949 s->s3=s3; in ssl3_new()
2966 if (s->s3->client_opaque_prf_input != NULL) in ssl3_free()
2967 OPENSSL_free(s->s3->client_opaque_prf_input); in ssl3_free()
2968 if (s->s3->server_opaque_prf_input != NULL) in ssl3_free()
2969 OPENSSL_free(s->s3->server_opaque_prf_input); in ssl3_free()
2973 if (s->s3->rbuf.buf != NULL) in ssl3_free()
2975 if (s->s3->wbuf.buf != NULL) in ssl3_free()
2977 if (s->s3->rrec.comp != NULL) in ssl3_free()
2978 OPENSSL_free(s->s3->rrec.comp); in ssl3_free()
2980 if (s->s3->tmp.dh != NULL) in ssl3_free()
2981 DH_free(s->s3->tmp.dh); in ssl3_free()
2984 if (s->s3->tmp.ecdh != NULL) in ssl3_free()
2985 EC_KEY_free(s->s3->tmp.ecdh); in ssl3_free()
2988 if (s->s3->tmp.ca_names != NULL) in ssl3_free()
2989 sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free); in ssl3_free()
2990 if (s->s3->handshake_buffer) { in ssl3_free()
2991 BIO_free(s->s3->handshake_buffer); in ssl3_free()
2993 if (s->s3->handshake_dgst) ssl3_free_digest_list(s); in ssl3_free()
2997 OPENSSL_cleanse(s->s3,sizeof *s->s3); in ssl3_free()
2998 OPENSSL_free(s->s3); in ssl3_free()
2999 s->s3=NULL; in ssl3_free()
3009 if (s->s3->client_opaque_prf_input != NULL) in ssl3_clear()
3010 OPENSSL_free(s->s3->client_opaque_prf_input); in ssl3_clear()
3011 s->s3->client_opaque_prf_input = NULL; in ssl3_clear()
3012 if (s->s3->server_opaque_prf_input != NULL) in ssl3_clear()
3013 OPENSSL_free(s->s3->server_opaque_prf_input); in ssl3_clear()
3014 s->s3->server_opaque_prf_input = NULL; in ssl3_clear()
3018 if (s->s3->tmp.ca_names != NULL) in ssl3_clear()
3019 sk_X509_NAME_pop_free(s->s3->tmp.ca_names,X509_NAME_free); in ssl3_clear()
3021 if (s->s3->rrec.comp != NULL) in ssl3_clear()
3023 OPENSSL_free(s->s3->rrec.comp); in ssl3_clear()
3024 s->s3->rrec.comp=NULL; in ssl3_clear()
3027 if (s->s3->tmp.dh != NULL) in ssl3_clear()
3029 DH_free(s->s3->tmp.dh); in ssl3_clear()
3030 s->s3->tmp.dh = NULL; in ssl3_clear()
3034 if (s->s3->tmp.ecdh != NULL) in ssl3_clear()
3036 EC_KEY_free(s->s3->tmp.ecdh); in ssl3_clear()
3037 s->s3->tmp.ecdh = NULL; in ssl3_clear()
3041 rp = s->s3->rbuf.buf; in ssl3_clear()
3042 wp = s->s3->wbuf.buf; in ssl3_clear()
3043 rlen = s->s3->rbuf.len; in ssl3_clear()
3044 wlen = s->s3->wbuf.len; in ssl3_clear()
3045 init_extra = s->s3->init_extra; in ssl3_clear()
3046 if (s->s3->handshake_buffer) { in ssl3_clear()
3047 BIO_free(s->s3->handshake_buffer); in ssl3_clear()
3048 s->s3->handshake_buffer = NULL; in ssl3_clear()
3050 if (s->s3->handshake_dgst) { in ssl3_clear()
3053 memset(s->s3,0,sizeof *s->s3); in ssl3_clear()
3054 s->s3->rbuf.buf = rp; in ssl3_clear()
3055 s->s3->wbuf.buf = wp; in ssl3_clear()
3056 s->s3->rbuf.len = rlen; in ssl3_clear()
3057 s->s3->wbuf.len = wlen; in ssl3_clear()
3058 s->s3->init_extra = init_extra; in ssl3_clear()
3063 s->s3->renegotiate=0; in ssl3_clear()
3064 s->s3->total_renegotiations=0; in ssl3_clear()
3065 s->s3->num_renegotiations=0; in ssl3_clear()
3066 s->s3->in_read_app_data=0; in ssl3_clear()
3118 ret=s->s3->num_renegotiations; in ssl3_ctrl()
3121 ret=s->s3->num_renegotiations; in ssl3_ctrl()
3122 s->s3->num_renegotiations=0; in ssl3_ctrl()
3125 ret=s->s3->total_renegotiations; in ssl3_ctrl()
3128 ret=(int)(s->s3->flags); in ssl3_ctrl()
4031 alg_k = s->s3->tmp.new_cipher->algorithm_mkey; in ssl3_get_req_cert_type()
4112 if (s->s3->alert_dispatch) in ssl3_shutdown()
4115 else if (s->s3->alert_dispatch) in ssl3_shutdown()
4141 !s->s3->alert_dispatch) in ssl3_shutdown()
4159 if (s->s3->renegotiate) ssl3_renegotiate_check(s); in ssl3_write()
4166 if ((s->s3->flags & SSL3_FLAGS_POP_BUFFER) && (s->wbio == s->bbio)) in ssl3_write()
4169 if (s->s3->delay_buf_pop_ret == 0) in ssl3_write()
4175 s->s3->delay_buf_pop_ret=ret; in ssl3_write()
4185 s->s3->flags&= ~SSL3_FLAGS_POP_BUFFER; in ssl3_write()
4187 ret=s->s3->delay_buf_pop_ret; in ssl3_write()
4188 s->s3->delay_buf_pop_ret=0; in ssl3_write()
4205 if ((s->s3->flags & SSL3_FLAGS_POP_BUFFER) && (s->wbio == s->bbio)) in ssl3_read_internal()
4218 if (s->s3->renegotiate) ssl3_renegotiate_check(s); in ssl3_read_internal()
4219 s->s3->in_read_app_data=1; in ssl3_read_internal()
4221 if ((ret == -1) && (s->s3->in_read_app_data == 2)) in ssl3_read_internal()
4233 s->s3->in_read_app_data=0; in ssl3_read_internal()
4253 if (s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS) in ssl3_renegotiate()
4256 s->s3->renegotiate=1; in ssl3_renegotiate()
4264 if (s->s3->renegotiate) in ssl3_renegotiate_check()
4266 if ( (s->s3->rbuf.left == 0) && in ssl3_renegotiate_check()
4267 (s->s3->wbuf.left == 0) && in ssl3_renegotiate_check()
4276 s->s3->renegotiate=0; in ssl3_renegotiate_check()
4277 s->s3->num_renegotiations++; in ssl3_renegotiate_check()
4278 s->s3->total_renegotiations++; in ssl3_renegotiate_check()
4289 long alg2 = s->s3->tmp.new_cipher->algorithm2; in ssl_get_algorithm2()