diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-08-09 17:30:37 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-08-09 17:30:37 +0000 |
commit | fc3862bdc14cbb39200ab622cef44e90e49616d3 (patch) | |
tree | 1ae2a3ccdd19ba8c79128bb2f9d35069fa9d62b9 /libextra/auth_srp.c | |
parent | 04a2b6cdd6a3e4f1d51720e5bb1ea40728ba6ed2 (diff) | |
download | gnutls-fc3862bdc14cbb39200ab622cef44e90e49616d3.tar.gz |
Applied patch from Arne Thomassen <arne@arne-thomassen.de>, which
corrects several things in the library.
Diffstat (limited to 'libextra/auth_srp.c')
-rw-r--r-- | libextra/auth_srp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libextra/auth_srp.c b/libextra/auth_srp.c index 6e32edc14e..4c62e5963e 100644 --- a/libextra/auth_srp.c +++ b/libextra/auth_srp.c @@ -197,7 +197,7 @@ int _gnutls_gen_srp_client_kx(gnutls_session state, opaque ** data) if (cred == NULL) { gnutls_assert(); - return GNUTLS_E_INSUFICIENT_CRED; + return GNUTLS_E_INSUFFICIENT_CREDENTIALS; } username = cred->username; @@ -205,14 +205,14 @@ int _gnutls_gen_srp_client_kx(gnutls_session state, opaque ** data) if (username == NULL || password == NULL) { gnutls_assert(); - return GNUTLS_E_INSUFICIENT_CRED; + return GNUTLS_E_INSUFFICIENT_CREDENTIALS; } /* calc A = g^a % N */ if (G == NULL || N == NULL) { gnutls_assert(); - return GNUTLS_E_INSUFICIENT_CRED; + return GNUTLS_E_INSUFFICIENT_CREDENTIALS; } A = _gnutls_calc_srp_A( &_a, G, N); @@ -380,7 +380,7 @@ int _gnutls_proc_srp_server_kx(gnutls_session state, opaque * data, size_t _data if (cred == NULL) { gnutls_assert(); - return GNUTLS_E_INSUFICIENT_CRED; + return GNUTLS_E_INSUFFICIENT_CREDENTIALS; } username = cred->username; @@ -388,7 +388,7 @@ int _gnutls_proc_srp_server_kx(gnutls_session state, opaque * data, size_t _data if (username == NULL || password == NULL) { gnutls_assert(); - return GNUTLS_E_INSUFICIENT_CRED; + return GNUTLS_E_INSUFFICIENT_CREDENTIALS; } i = 0; |