diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2016-12-14 18:07:05 +0300 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2016-12-14 19:55:03 +0300 |
commit | 83e659a2a4ea9a9cf540e3bdcde7afaf15334f66 (patch) | |
tree | cbf9bf36cdc629f405831c48e0de63eb356a48b8 | |
parent | 5b75565b37da5d682ee88292b1460b41cac91b42 (diff) | |
download | gnutls-83e659a2a4ea9a9cf540e3bdcde7afaf15334f66.tar.gz |
Drop _gnutls_epoch_get_compression
This function is unused since long ago, let's drop it.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r-- | lib/constate.c | 12 | ||||
-rw-r--r-- | lib/constate.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/lib/constate.c b/lib/constate.c index 6d971c208e..81cbeff462 100644 --- a/lib/constate.c +++ b/lib/constate.c @@ -443,18 +443,6 @@ int _gnutls_connection_state_init(gnutls_session_t session) return 0; } -int _gnutls_epoch_get_compression(gnutls_session_t session, int epoch) -{ - record_parameters_st *params; - int ret; - - ret = _gnutls_epoch_get(session, epoch, ¶ms); - if (ret < 0) - return GNUTLS_COMP_UNKNOWN; - - return params->compression_algorithm; -} - /* Initializes the read connection session * (read encrypted data) */ diff --git a/lib/constate.h b/lib/constate.h index d256332185..c62b72b9d0 100644 --- a/lib/constate.h +++ b/lib/constate.h @@ -27,7 +27,6 @@ int _gnutls_set_cipher_suite(gnutls_session_t session, const uint8_t suite[2]); int _gnutls_set_compression(gnutls_session_t session, gnutls_compression_method_t comp_algo); -int _gnutls_epoch_get_compression(gnutls_session_t session, int epoch_rel); void _gnutls_epoch_set_null_algos(gnutls_session_t session, record_parameters_st * params); int _gnutls_epoch_set_keys(gnutls_session_t session, uint16_t epoch); |