Lines Matching refs:s3

54             || !EVP_DigestUpdate(s1, s->s3.server_random, SSL3_RANDOM_SIZE)
55 || !EVP_DigestUpdate(s1, s->s3.client_random, SSL3_RANDOM_SIZE)
103 c = s->s3.tmp.new_sym_enc;
104 m = s->s3.tmp.new_hash;
111 if (s->s3.tmp.new_compression == NULL)
114 comp = s->s3.tmp.new_compression->method;
149 mac_secret = &(s->s3.read_mac_secret[0]);
182 mac_secret = &(s->s3.write_mac_secret[0]);
188 p = s->s3.tmp.key_block;
216 if (n > s->s3.tmp.key_block_length) {
249 if (s->s3.tmp.key_block_length != 0)
259 ssl_evp_cipher_free(s->s3.tmp.new_sym_enc);
260 s->s3.tmp.new_sym_enc = c;
261 ssl_evp_md_free(s->s3.tmp.new_hash);
262 s->s3.tmp.new_hash = hash;
264 s->s3.tmp.new_compression = NULL;
266 s->s3.tmp.new_compression = comp;
283 s->s3.tmp.key_block_length = num;
284 s->s3.tmp.key_block = p;
294 s->s3.need_empty_fragments = 1;
298 s->s3.need_empty_fragments = 0;
301 s->s3.need_empty_fragments = 0;
310 OPENSSL_clear_free(s->s3.tmp.key_block, s->s3.tmp.key_block_length);
311 s->s3.tmp.key_block = NULL;
312 s->s3.tmp.key_block_length = 0;
324 s->s3.handshake_buffer = buf;
325 (void)BIO_set_close(s->s3.handshake_buffer, BIO_CLOSE);
336 BIO_free(s->s3.handshake_buffer);
337 s->s3.handshake_buffer = NULL;
338 EVP_MD_CTX_free(s->s3.handshake_dgst);
339 s->s3.handshake_dgst = NULL;
346 if (s->s3.handshake_dgst == NULL) {
352 ret = BIO_write(s->s3.handshake_buffer, (void *)buf, (int)len);
358 ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len);
373 if (s->s3.handshake_dgst == NULL) {
374 hdatalen = BIO_get_mem_data(s->s3.handshake_buffer, &hdata);
380 s->s3.handshake_dgst = EVP_MD_CTX_new();
381 if (s->s3.handshake_dgst == NULL) {
392 if (!EVP_DigestInit_ex(s->s3.handshake_dgst, md, NULL)
393 || !EVP_DigestUpdate(s->s3.handshake_dgst, hdata, hdatalen)) {
399 BIO_free(s->s3.handshake_buffer);
400 s->s3.handshake_buffer = NULL;
427 if (EVP_MD_CTX_get_type(s->s3.handshake_dgst) != NID_md5_sha1) {
437 if (!EVP_MD_CTX_copy_ex(ctx, s->s3.handshake_dgst)) {
498 || EVP_DigestUpdate(ctx, &(s->s3.client_random[0]),
500 || EVP_DigestUpdate(ctx, &(s->s3.server_random[0]),