• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/ssl/

Lines Matching defs:s3

2999     return (s->s3->rrec.type ==
3000 SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0;
3019 SSL3_STATE *s3;
3021 if ((s3 = OPENSSL_malloc(sizeof *s3)) == NULL)
3023 memset(s3, 0, sizeof *s3);
3024 memset(s3->rrec.seq_num, 0, sizeof(s3->rrec.seq_num));
3025 memset(s3->wrec.seq_num, 0, sizeof(s3->wrec.seq_num));
3027 s->s3 = s3;
3040 if (s == NULL || s->s3 == NULL)
3044 if (s->s3->client_opaque_prf_input != NULL)
3045 OPENSSL_free(s->s3->client_opaque_prf_input);
3046 if (s->s3->server_opaque_prf_input != NULL)
3047 OPENSSL_free(s->s3->server_opaque_prf_input);
3051 if (s->s3->rbuf.buf != NULL)
3053 if (s->s3->wbuf.buf != NULL)
3055 if (s->s3->rrec.comp != NULL)
3056 OPENSSL_free(s->s3->rrec.comp);
3058 if (s->s3->tmp.dh != NULL)
3059 DH_free(s->s3->tmp.dh);
3062 if (s->s3->tmp.ecdh != NULL)
3063 EC_KEY_free(s->s3->tmp.ecdh);
3066 if (s->s3->tmp.ca_names != NULL)
3067 sk_X509_NAME_pop_free(s->s3->tmp.ca_names, X509_NAME_free);
3068 if (s->s3->handshake_buffer) {
3069 BIO_free(s->s3->handshake_buffer);
3071 if (s->s3->handshake_dgst)
3074 if (s->s3->alpn_selected)
3075 OPENSSL_free(s->s3->alpn_selected);
3081 OPENSSL_cleanse(s->s3, sizeof *s->s3);
3082 OPENSSL_free(s->s3);
3083 s->s3 = NULL;
3093 if (s->s3->client_opaque_prf_input != NULL)
3094 OPENSSL_free(s->s3->client_opaque_prf_input);
3095 s->s3->client_opaque_prf_input = NULL;
3096 if (s->s3->server_opaque_prf_input != NULL)
3097 OPENSSL_free(s->s3->server_opaque_prf_input);
3098 s->s3->server_opaque_prf_input = NULL;
3102 if (s->s3->tmp.ca_names != NULL)
3103 sk_X509_NAME_pop_free(s->s3->tmp.ca_names, X509_NAME_free);
3105 if (s->s3->rrec.comp != NULL) {
3106 OPENSSL_free(s->s3->rrec.comp);
3107 s->s3->rrec.comp = NULL;
3110 if (s->s3->tmp.dh != NULL) {
3111 DH_free(s->s3->tmp.dh);
3112 s->s3->tmp.dh = NULL;
3116 if (s->s3->tmp.ecdh != NULL) {
3117 EC_KEY_free(s->s3->tmp.ecdh);
3118 s->s3->tmp.ecdh = NULL;
3123 s->s3->is_probably_safari = 0;
3127 rp = s->s3->rbuf.buf;
3128 wp = s->s3->wbuf.buf;
3129 rlen = s->s3->rbuf.len;
3130 wlen = s->s3->wbuf.len;
3131 init_extra = s->s3->init_extra;
3132 if (s->s3->handshake_buffer) {
3133 BIO_free(s->s3->handshake_buffer);
3134 s->s3->handshake_buffer = NULL;
3136 if (s->s3->handshake_dgst) {
3140 if (s->s3->alpn_selected) {
3141 OPENSSL_free(s->s3->alpn_selected);
3142 s->s3->alpn_selected = NULL;
3145 memset(s->s3, 0, sizeof *s->s3);
3146 s->s3->rbuf.buf = rp;
3147 s->s3->wbuf.buf = wp;
3148 s->s3->rbuf.len = rlen;
3149 s->s3->wbuf.len = wlen;
3150 s->s3->init_extra = init_extra;
3155 s->s3->renegotiate = 0;
3156 s->s3->total_renegotiations = 0;
3157 s->s3->num_renegotiations = 0;
3158 s->s3->in_read_app_data = 0;
3207 ret = s->s3->num_renegotiations;
3210 ret = s->s3->num_renegotiations;
3211 s->s3->num_renegotiations = 0;
3214 ret = s->s3->total_renegotiations;
3217 ret = (int)(s->s3->flags);
3450 cipher = s->s3->tmp.new_cipher;
3526 if (s->server || !s->s3->tmp.cert_req)
3534 *pctype = (unsigned char *)s->s3->tmp.ctype;
3535 return s->s3->tmp.ctype_num;
4209 && s->s3->is_probably_safari) {
4260 alg_k = s->s3->tmp.new_cipher->algorithm_mkey;
4365 * written, s->s3->alert_dispatch will be true
4367 if (s->s3->alert_dispatch)
4369 } else if (s->s3->alert_dispatch) {
4393 !s->s3->alert_dispatch)
4410 if (s->s3->renegotiate)
4419 if ((s->s3->flags & SSL3_FLAGS_POP_BUFFER) && (s->wbio == s->bbio)) {
4421 if (s->s3->delay_buf_pop_ret == 0) {
4426 s->s3->delay_buf_pop_ret = ret;
4437 s->s3->flags &= ~SSL3_FLAGS_POP_BUFFER;
4439 ret = s->s3->delay_buf_pop_ret;
4440 s->s3->delay_buf_pop_ret = 0;
4456 if (s->s3->renegotiate)
4458 s->s3->in_read_app_data = 1;
4462 if ((ret == -1) && (s->s3->in_read_app_data == 2)) {
4476 s->s3->in_read_app_data = 0;
4496 if (s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS)
4499 s->s3->renegotiate = 1;
4507 if (s->s3->renegotiate) {
4508 if ((s->s3->rbuf.left == 0) &&
4509 (s->s3->wbuf.left == 0) && !SSL_in_init(s)) {
4516 s->s3->renegotiate = 0;
4517 s->s3->num_renegotiations++;
4518 s->s3->total_renegotiations++;
4531 long alg2 = s->s3->tmp.new_cipher->algorithm2;