? OSSL_RECORD_PROTECTION_LEVEL_HANDSHAKE
: OSSL_RECORD_PROTECTION_LEVEL_APPLICATION);
+ if (SSL_CONNECTION_IS_DTLS(s)) {
+ /* We have moved to the next flight lets clear out old messages */
+ if (direction == OSSL_RECORD_DIRECTION_READ)
+ dtls1_clear_received_buffer(s);
+ else
+ dtls1_clear_sent_buffer(s);
+ }
+
if (!ssl_set_new_record_layer(s, s->version,
direction,
level, secret, hashlen, key, keylen, iv,
return 0;
}
+void dtls1_clear_received_buffer(SSL_CONNECTION *s)
+{
+}
+
+void dtls1_clear_sent_buffer(SSL_CONNECTION *s)
+{
+}
+
/* End of mocked out code */
static int test_secret(SSL_CONNECTION *s, unsigned char *prk,