提交 9458530d 编写于 作者: D Dr. Stephen Henson

Update from 1.0.0-stable

上级 9de014a7
...@@ -390,6 +390,14 @@ int gost_cipher_ctl(EVP_CIPHER_CTX *ctx,int type,int arg,void *ptr) ...@@ -390,6 +390,14 @@ int gost_cipher_ctl(EVP_CIPHER_CTX *ctx,int type,int arg,void *ptr)
} }
break; break;
} }
case EVP_CTRL_PBE_PRF_NID:
if (ptr) {
*((int *)ptr)= NID_id_HMACGostR3411_94;
return 1;
} else {
return 0;
}
default: default:
GOSTerr(GOST_F_GOST_CIPHER_CTL,GOST_R_UNSUPPORTED_CIPHER_CTL_COMMAND); GOSTerr(GOST_F_GOST_CIPHER_CTL,GOST_R_UNSUPPORTED_CIPHER_CTL_COMMAND);
return -1; return -1;
......
...@@ -623,6 +623,7 @@ again: ...@@ -623,6 +623,7 @@ again:
/* this packet contained a partial record, dump it */ /* this packet contained a partial record, dump it */
if ( n != i) if ( n != i)
{ {
rr->length = 0;
s->packet_length = 0; s->packet_length = 0;
goto again; goto again;
} }
...@@ -636,6 +637,7 @@ again: ...@@ -636,6 +637,7 @@ again:
bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch); bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch);
if ( bitmap == NULL) if ( bitmap == NULL)
{ {
rr->length = 0;
s->packet_length = 0; /* dump this record */ s->packet_length = 0; /* dump this record */
goto again; /* get another record */ goto again; /* get another record */
} }
...@@ -660,6 +662,7 @@ again: ...@@ -660,6 +662,7 @@ again:
{ {
dtls1_record_bitmap_update(s, bitmap); dtls1_record_bitmap_update(s, bitmap);
dtls1_buffer_record(s, &(s->d1->unprocessed_rcds), rr->seq_num); dtls1_buffer_record(s, &(s->d1->unprocessed_rcds), rr->seq_num);
rr->length = 0;
s->packet_length = 0; s->packet_length = 0;
goto again; goto again;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册