return 1;
}
+int dtls_post_encryption_processing(OSSL_RECORD_LAYER *rl,
+ size_t mac_size,
+ OSSL_RECORD_TEMPLATE *thistempl,
+ WPACKET *thispkt,
+ SSL3_RECORD *thiswr)
+{
+ if (!tls_post_encryption_processing_default(rl, mac_size, thistempl,
+ thispkt, thiswr)) {
+ /* RLAYERfatal() already called */
+ return 0;
+ }
+
+ return tls_increment_sequence_ctr(rl);
+}
+
int dtls_write_records(OSSL_RECORD_LAYER *rl, OSSL_RECORD_TEMPLATE *templates,
size_t numtempl)
{
goto err;
}
- if (!tls_increment_sequence_ctr(rl)) {
- /* RLAYERfatal() already called */
- goto err;
- }
-
/* now let's set up wb */
SSL3_BUFFER_set_left(wb, SSL3_RECORD_get_length(&wr));
OSSL_RECORD_TEMPLATE *templ,
unsigned int rectype,
unsigned char **recdata);
+int dtls_post_encryption_processing(OSSL_RECORD_LAYER *rl,
+ size_t mac_size,
+ OSSL_RECORD_TEMPLATE *thistempl,
+ WPACKET *thispkt,
+ SSL3_RECORD *thiswr);
int dtls_write_records(OSSL_RECORD_LAYER *rl, OSSL_RECORD_TEMPLATE *templates,
size_t numtempl);
dtls_prepare_record_header,
NULL,
tls_prepare_for_encryption_default,
- tls_post_encryption_processing_default,
+ dtls_post_encryption_processing,
NULL
};
dtls_prepare_record_header,
NULL,
tls_prepare_for_encryption_default,
- tls_post_encryption_processing_default,
+ dtls_post_encryption_processing,
NULL
};