]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove some unused OSSL_RECORD_METHOD functions
authorMatt Caswell <matt@openssl.org>
Fri, 21 Oct 2022 15:44:08 +0000 (16:44 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 27 Oct 2022 09:52:52 +0000 (10:52 +0100)
Remove two function pointers from the OSSL_RECORD_METHOD. Those functions
were no-ops and were never called.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19472)

ssl/record/methods/dtls_meth.c
ssl/record/methods/ktls_meth.c
ssl/record/methods/recmethod_local.h
ssl/record/methods/tls_common.c
ssl/record/recordmethod.h

index 9988e2406f9d6cbb302fa788505a419a6f533277..cb3e3057366b38d936931062df302a890d38d981 100644 (file)
@@ -771,8 +771,6 @@ const OSSL_RECORD_METHOD ossl_dtls_record_method = {
     tls_unprocessed_read_pending,
     tls_processed_read_pending,
     tls_app_data_pending,
-    tls_write_pending,
-    tls_get_max_record_len,
     tls_get_max_records,
     tls_write_records,
     tls_retry_write_records,
index 63cf6b475f6fd75013241ea92641cd8691c8b6b5..2d14cfe3176ab3252f7e301282b2b8212cfd3ec8 100644 (file)
@@ -579,8 +579,6 @@ const OSSL_RECORD_METHOD ossl_ktls_record_method = {
     tls_unprocessed_read_pending,
     tls_processed_read_pending,
     tls_app_data_pending,
-    tls_write_pending,
-    tls_get_max_record_len,
     tls_get_max_records,
     tls_write_records,
     tls_retry_write_records,
index b02ab296bd276ad15a72d3a1347b997de85ec757..9b85ce9e146ae684a8c96463c077c16364a080d8 100644 (file)
@@ -389,8 +389,6 @@ int tls_reset(OSSL_RECORD_LAYER *rl);
 int tls_unprocessed_read_pending(OSSL_RECORD_LAYER *rl);
 int tls_processed_read_pending(OSSL_RECORD_LAYER *rl);
 size_t tls_app_data_pending(OSSL_RECORD_LAYER *rl);
-int tls_write_pending(OSSL_RECORD_LAYER *rl);
-size_t tls_get_max_record_len(OSSL_RECORD_LAYER *rl);
 size_t tls_get_max_records(OSSL_RECORD_LAYER *rl, int type, size_t len,
                            size_t maxfrag, size_t *preffrag);
 int tls_write_records(OSSL_RECORD_LAYER *rl, OSSL_RECORD_TEMPLATE *templates,
index 4ef65ae1521e87543d29b67d2bc1eb5f71844020..08dfca82e15e10a4021a116ed1ad21ee2de9d53a 100644 (file)
@@ -1445,16 +1445,6 @@ size_t tls_app_data_pending(OSSL_RECORD_LAYER *rl)
     return num;
 }
 
-int tls_write_pending(OSSL_RECORD_LAYER *rl)
-{
-    return 0;
-}
-
-size_t tls_get_max_record_len(OSSL_RECORD_LAYER *rl)
-{
-    return 0;
-}
-
 size_t tls_get_max_records_default(OSSL_RECORD_LAYER *rl, int type, size_t len,
                                    size_t maxfrag, size_t *preffrag)
 {
@@ -2098,8 +2088,6 @@ const OSSL_RECORD_METHOD ossl_tls_record_method = {
     tls_unprocessed_read_pending,
     tls_processed_read_pending,
     tls_app_data_pending,
-    tls_write_pending,
-    tls_get_max_record_len,
     tls_get_max_records,
     tls_write_records,
     tls_retry_write_records,
index 70e6e4d26adf5ed343fcf41a7e12f00bd3b2535f..064f8e5feb56d631790c032d2995fb9bae308337 100644 (file)
@@ -164,16 +164,6 @@ struct ossl_record_method_st {
      */
     size_t (*app_data_pending)(OSSL_RECORD_LAYER *rl);
 
-    int (*write_pending)(OSSL_RECORD_LAYER *rl);
-
-    /*
-     * Find out the maximum amount of plaintext data that the record layer is
-     * prepared to write in a single record. When calling write_records it is
-     * the caller's responsibility to ensure that no record template exceeds
-     * this maximum when calling write_records.
-     */
-    size_t (*get_max_record_len)(OSSL_RECORD_LAYER *rl);
-
     /*
      * Find out the maximum number of records that the record layer is prepared
      * to process in a single call to write_records. It is the caller's