summaryrefslogtreecommitdiff
path: root/lib/auth_rsa.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-15 14:04:47 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-15 14:04:47 +0000
commit826195fcec8b98b6e021315fbb60f36721e2f124 (patch)
treeab5b59e6b28259f540e4b0242b8ea72e364a5736 /lib/auth_rsa.c
parentf72ace13f7340934bb02a72212ee6521fa7ab55c (diff)
downloadgnutls-826195fcec8b98b6e021315fbb60f36721e2f124.tar.gz
Some updates in order to compile with tcc.
Diffstat (limited to 'lib/auth_rsa.c')
-rw-r--r--lib/auth_rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/auth_rsa.c b/lib/auth_rsa.c
index 6547651c34..38d51a9a97 100644
--- a/lib/auth_rsa.c
+++ b/lib/auth_rsa.c
@@ -91,7 +91,7 @@ int i;
/* EXPORT case: */
- if ( _gnutls_cipher_suite_get_kx_algo(session->security_parameters.current_cipher_suite)
+ if ( _gnutls_cipher_suite_get_kx_algo(&session->security_parameters.current_cipher_suite)
== GNUTLS_KX_RSA_EXPORT &&
_gnutls_mpi_get_nbits(peer_cert.params[0]) > 512) {
@@ -152,7 +152,7 @@ gnutls_rsa_params rsa_params;
bits = _gnutls_mpi_get_nbits(session->internals.selected_cert_list[0].params[0]);
- if ( _gnutls_cipher_suite_get_kx_algo(session->security_parameters.current_cipher_suite)
+ if ( _gnutls_cipher_suite_get_kx_algo(&session->security_parameters.current_cipher_suite)
== GNUTLS_KX_RSA_EXPORT &&
bits > 512) {
@@ -225,7 +225,7 @@ int _gnutls_proc_rsa_client_kx(gnutls_session session, opaque * data, size_t _da
return ret;
}
- ret = _gnutls_pkcs1_rsa_decrypt(&plaintext, ciphertext, params,
+ ret = _gnutls_pkcs1_rsa_decrypt(&plaintext, &ciphertext, params,
params_len, 2); /* btype==2 */
if (ret < 0 || plaintext.size != TLS_MASTER_SIZE) {