diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-12-05 00:29:17 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-12-05 00:29:17 +0000 |
commit | 0f516a7a1b8f0de2c4a3c50401abfebaa8f92bf3 (patch) | |
tree | 2d153d5cd9c40e2b8bde80e4b5f2eaefb726885f /lib/gnutls_cipher.c | |
parent | 2461571cab81ece160ab134718ea4bc074cb5d12 (diff) | |
download | gnutls-0f516a7a1b8f0de2c4a3c50401abfebaa8f92bf3.tar.gz |
Priorities were moved to the state (were global)
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r-- | lib/gnutls_cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c index 56449335a8..1a5bcd0992 100644 --- a/lib/gnutls_cipher.c +++ b/lib/gnutls_cipher.c @@ -126,7 +126,7 @@ int _gnutls_set_cipher(GNUTLS_STATE state, BulkCipherAlgorithm algo) { if (_gnutls_cipher_is_ok(algo) == 0) { - if (_gnutls_cipher_priority(algo) < 0) { + if (_gnutls_cipher_priority(state, algo) < 0) { gnutls_assert(); return GNUTLS_E_UNWANTED_ALGORITHM; } @@ -183,7 +183,7 @@ int _gnutls_set_mac(GNUTLS_STATE state, MACAlgorithm algo) gnutls_assert(); return GNUTLS_E_UNKNOWN_MAC_ALGORITHM; } - if (_gnutls_mac_priority(algo) < 0) { + if (_gnutls_mac_priority(state, algo) < 0) { gnutls_assert(); return GNUTLS_E_UNWANTED_ALGORITHM; } |