summaryrefslogtreecommitdiff
path: root/lib/auth/dh_common.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-01-26 10:28:31 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-01-26 10:28:31 +0100
commit83100dcd7591fc7b5503c25f7bb6fe04ee4b5450 (patch)
tree686c7730aa1651d123950e809443f8659807a10b /lib/auth/dh_common.c
parentea2afc5723133ab710b657e848b6481747620e97 (diff)
downloadgnutls-83100dcd7591fc7b5503c25f7bb6fe04ee4b5450.tar.gz
updated mpi_scan macros
Diffstat (limited to 'lib/auth/dh_common.c')
-rw-r--r--lib/auth/dh_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/auth/dh_common.c b/lib/auth/dh_common.c
index e1985d379c..3451e8236e 100644
--- a/lib/auth/dh_common.c
+++ b/lib/auth/dh_common.c
@@ -71,7 +71,7 @@ _gnutls_proc_dh_common_client_kx(gnutls_session_t session,
_n_Y = n_Y;
DECR_LEN(data_size, n_Y);
- if (_gnutls_mpi_scan_nz(&session->key.client_Y, &data[2], _n_Y)) {
+ if (_gnutls_mpi_init_scan_nz(&session->key.client_Y, &data[2], _n_Y)) {
gnutls_assert();
return GNUTLS_E_MPI_SCAN_FAILED;
}
@@ -241,17 +241,17 @@ _gnutls_proc_dh_common_server_kx(gnutls_session_t session,
_n_g = n_g;
_n_p = n_p;
- if (_gnutls_mpi_scan_nz(&session->key.client_Y, data_Y, _n_Y) != 0) {
+ if (_gnutls_mpi_init_scan_nz(&session->key.client_Y, data_Y, _n_Y) != 0) {
gnutls_assert();
return GNUTLS_E_MPI_SCAN_FAILED;
}
- if (_gnutls_mpi_scan_nz(&session->key.dh_params.params[DH_G], data_g, _n_g) != 0) {
+ if (_gnutls_mpi_init_scan_nz(&session->key.dh_params.params[DH_G], data_g, _n_g) != 0) {
gnutls_assert();
return GNUTLS_E_MPI_SCAN_FAILED;
}
- if (_gnutls_mpi_scan_nz(&session->key.dh_params.params[DH_P], data_p, _n_p) != 0) {
+ if (_gnutls_mpi_init_scan_nz(&session->key.dh_params.params[DH_P], data_p, _n_p) != 0) {
gnutls_assert();
return GNUTLS_E_MPI_SCAN_FAILED;
}