Ensure the record layer is responsible for calculating record overheads
[openssl.git] / ssl / record / recordmethod.h
index a60b2470fa8bacd6b84088ccad8df59fa175e95d..36ba59e3c20daab9629fe43bf15fc032e89e278e 100644 (file)
@@ -309,6 +309,12 @@ struct ossl_record_method_st {
      * setting during construction of the record layer.
      */
     void (*set_max_frag_len)(OSSL_RECORD_LAYER *rl, size_t max_frag_len);
+
+    /*
+     * The maximum expansion in bytes that the record layer might add while
+     * writing a record
+     */
+    size_t (*get_max_record_overhead)(OSSL_RECORD_LAYER *rl);
 };