d1_both.c (260403) | d1_both.c (261037) |
---|---|
1/* ssl/d1_both.c */ 2/* 3 * DTLS implementation written by Nagendra Modadugu 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 5 */ 6/* ==================================================================== 7 * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. 8 * --- 305 unchanged lines hidden (view full) --- 314 if ( type == SSL3_RT_HANDSHAKE) 315 { 316 if ( s->init_off != 0) 317 { 318 OPENSSL_assert(s->init_off > DTLS1_HM_HEADER_LENGTH); 319 s->init_off -= DTLS1_HM_HEADER_LENGTH; 320 s->init_num += DTLS1_HM_HEADER_LENGTH; 321 | 1/* ssl/d1_both.c */ 2/* 3 * DTLS implementation written by Nagendra Modadugu 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 5 */ 6/* ==================================================================== 7 * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. 8 * --- 305 unchanged lines hidden (view full) --- 314 if ( type == SSL3_RT_HANDSHAKE) 315 { 316 if ( s->init_off != 0) 317 { 318 OPENSSL_assert(s->init_off > DTLS1_HM_HEADER_LENGTH); 319 s->init_off -= DTLS1_HM_HEADER_LENGTH; 320 s->init_num += DTLS1_HM_HEADER_LENGTH; 321 |
322 /* write atleast DTLS1_HM_HEADER_LENGTH bytes */ 323 if ( len <= DTLS1_HM_HEADER_LENGTH) 324 len += DTLS1_HM_HEADER_LENGTH; | 322 if ( s->init_num > curr_mtu) 323 len = curr_mtu; 324 else 325 len = s->init_num; |
325 } 326 327 dtls1_fix_message_header(s, frag_off, 328 len - DTLS1_HM_HEADER_LENGTH); 329 330 dtls1_write_message_header(s, (unsigned char *)&s->init_buf->data[s->init_off]); 331 332 OPENSSL_assert(len >= DTLS1_HM_HEADER_LENGTH); --- 1265 unchanged lines hidden --- | 326 } 327 328 dtls1_fix_message_header(s, frag_off, 329 len - DTLS1_HM_HEADER_LENGTH); 330 331 dtls1_write_message_header(s, (unsigned char *)&s->init_buf->data[s->init_off]); 332 333 OPENSSL_assert(len >= DTLS1_HM_HEADER_LENGTH); --- 1265 unchanged lines hidden --- |