You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2018/01/09 03:00:54 UTC

[trafficserver] branch quic-latest updated: Remove unused functions

This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 1415df3  Remove unused functions
1415df3 is described below

commit 1415df3e5e4522c8b6a66f251d93ffe2fe5809c3
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Tue Jan 9 12:00:34 2018 +0900

    Remove unused functions
---
 iocore/net/quic/QUICCryptoTls.h         |  4 ----
 iocore/net/quic/QUICCrypto_boringssl.cc | 12 ------------
 iocore/net/quic/QUICCrypto_openssl.cc   | 12 ------------
 3 files changed, 28 deletions(-)

diff --git a/iocore/net/quic/QUICCryptoTls.h b/iocore/net/quic/QUICCryptoTls.h
index 0e41793..b26ec43 100644
--- a/iocore/net/quic/QUICCryptoTls.h
+++ b/iocore/net/quic/QUICCryptoTls.h
@@ -60,12 +60,8 @@ private:
   void _gen_nonce(uint8_t *nonce, size_t &nonce_len, uint64_t pkt_num, const uint8_t *iv, size_t iv_len) const;
 #ifdef OPENSSL_IS_BORINGSSL
   const EVP_AEAD *_get_evp_aead() const;
-  size_t _get_aead_key_len(const EVP_AEAD *aead) const;
-  size_t _get_aead_nonce_len(const EVP_AEAD *aead) const;
 #else
   const EVP_CIPHER *_get_evp_aead() const;
-  size_t _get_aead_key_len(const EVP_CIPHER *aead) const;
-  size_t _get_aead_nonce_len(const EVP_CIPHER *aead) const;
 #endif // OPENSSL_IS_BORINGSSL
   size_t _get_aead_tag_len() const;
 
diff --git a/iocore/net/quic/QUICCrypto_boringssl.cc b/iocore/net/quic/QUICCrypto_boringssl.cc
index 0d9ff5b..2cf16e0 100644
--- a/iocore/net/quic/QUICCrypto_boringssl.cc
+++ b/iocore/net/quic/QUICCrypto_boringssl.cc
@@ -71,18 +71,6 @@ QUICCryptoTls::_get_aead_tag_len(const SSL_CIPHER * /* cipher */) const
   return EVP_AEAD_DEFAULT_TAG_LENGTH;
 }
 
-size_t
-QUICCryptoTls::_get_aead_key_len(const EVP_AEAD *aead) const
-{
-  return EVP_AEAD_key_length(aead);
-}
-
-size_t
-QUICCryptoTls::_get_aead_nonce_len(const EVP_AEAD *aead) const
-{
-  return EVP_AEAD_nonce_length(aead);
-}
-
 int
 QUICCryptoTls::_hkdf_expand_label(uint8_t *dst, size_t dst_len, const uint8_t *secret, size_t secret_len, const char *label,
                                   size_t label_len, const EVP_MD *digest) const
diff --git a/iocore/net/quic/QUICCrypto_openssl.cc b/iocore/net/quic/QUICCrypto_openssl.cc
index b216ae1..9eae6b3 100644
--- a/iocore/net/quic/QUICCrypto_openssl.cc
+++ b/iocore/net/quic/QUICCrypto_openssl.cc
@@ -76,18 +76,6 @@ QUICCryptoTls::_get_aead_tag_len() const
   }
 }
 
-size_t
-QUICCryptoTls::_get_aead_key_len(const EVP_CIPHER *aead) const
-{
-  return EVP_CIPHER_key_length(aead);
-}
-
-size_t
-QUICCryptoTls::_get_aead_nonce_len(const EVP_CIPHER *aead) const
-{
-  return EVP_CIPHER_iv_length(aead);
-}
-
 bool
 QUICCryptoTls::_encrypt(uint8_t *cipher, size_t &cipher_len, size_t max_cipher_len, const uint8_t *plain, size_t plain_len,
                         uint64_t pkt_num, const uint8_t *ad, size_t ad_len, const KeyMaterial &km, size_t tag_len) const

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].