summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-13 20:08:02 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-13 20:08:02 +0100
commit9a7543f23b18907f37efbf8bf1f05560c902402f (patch)
treef02561120bf2d099d43997370086ca5581cf8c5f /lib/algorithms.h
parent070113ec2142111ee741e47b7c76aea20c9ceb38 (diff)
downloadgnutls-9a7543f23b18907f37efbf8bf1f05560c902402f.tar.gz
cipher_suite_st is no longer used internally. We only use a point to 2 bytes.
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r--lib/algorithms.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h
index d588811e18..6b78505a84 100644
--- a/lib/algorithms.h
+++ b/lib/algorithms.h
@@ -61,18 +61,13 @@ const char *_gnutls_digest_get_name (gnutls_digest_algorithm_t algorithm);
/* Functions for cipher suites. */
int _gnutls_supported_ciphersuites (gnutls_session_t session,
uint8_t* cipher_suites, int max_cipher_suite_size);
-const char *_gnutls_cipher_suite_get_name (cipher_suite_st * algorithm);
-gnutls_mac_algorithm_t _gnutls_cipher_suite_get_prf (const cipher_suite_st * suite);
+const char *_gnutls_cipher_suite_get_name (const uint8_t suite[2]);
+gnutls_mac_algorithm_t _gnutls_cipher_suite_get_prf (const uint8_t suite[2]);
gnutls_cipher_algorithm_t _gnutls_cipher_suite_get_cipher_algo (const
- cipher_suite_st
- * algorithm);
-gnutls_kx_algorithm_t _gnutls_cipher_suite_get_kx_algo (const cipher_suite_st
- * algorithm);
+ uint8_t suite[2]);
+gnutls_kx_algorithm_t _gnutls_cipher_suite_get_kx_algo (const uint8_t suite[2]);
gnutls_mac_algorithm_t _gnutls_cipher_suite_get_mac_algo (const
- cipher_suite_st *
- algorithm);
-cipher_suite_st _gnutls_cipher_suite_get_suite_name (cipher_suite_st *
- algorithm);
+ uint8_t suite[2]);
/* Functions for ciphers. */
int _gnutls_cipher_is_block (gnutls_cipher_algorithm_t algorithm);