void dtls1_clear_received_buffer ( SSL * s ) {
 pitem * item = NULL ;
 hm_fragment * frag = NULL ;
 while ( ( item = pqueue_pop ( s -> d1 -> buffered_messages ) ) != NULL ) {
 frag = ( hm_fragment * ) item -> data ;
 dtls1_hm_fragment_free ( frag ) ;
 pitem_free ( item ) ;
 }
 }
void dtls1_clear_received_buffer ( SSL * s ) {
 pitem * item = NULL ;
 hm_fragment * frag = NULL ;
 while ( ( item = pqueue_pop ( s -> d1 -> buffered_messages ) ) != NULL ) {
 frag = ( hm_fragment * ) item -> data ;
 dtls1_hm_fragment_free ( frag ) ;
 pitem_free ( item ) ;
 }
 }