diff options
Diffstat (limited to 'lib/gnutls_state.c')
-rw-r--r-- | lib/gnutls_state.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c index 628ec4ce52..e97b5af3eb 100644 --- a/lib/gnutls_state.c +++ b/lib/gnutls_state.c @@ -343,7 +343,7 @@ int _gnutls_dh_set_peer_public_bits( gnutls_session session, int bits) { ANON_SERVER_AUTH_INFO info; info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->dh_peer_public_bits = bits; break; } @@ -352,14 +352,14 @@ int _gnutls_dh_set_peer_public_bits( gnutls_session session, int bits) { info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->dh_peer_public_bits = bits; break; } default: gnutls_assert(); - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; } return 0; @@ -371,7 +371,7 @@ int _gnutls_dh_set_secret_bits( gnutls_session session, int bits) { ANON_SERVER_AUTH_INFO info; info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->dh_secret_bits = bits; break; } @@ -380,13 +380,13 @@ int _gnutls_dh_set_secret_bits( gnutls_session session, int bits) { info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->dh_secret_bits = bits; break; default: gnutls_assert(); - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; } } @@ -398,7 +398,7 @@ int _gnutls_rsa_export_set_modulus_bits( gnutls_session session, int bits) { info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->rsa_export_modulus_bits = bits; @@ -412,7 +412,7 @@ int _gnutls_dh_set_prime_bits( gnutls_session session, int bits) { ANON_SERVER_AUTH_INFO info; info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->dh_prime_bits = bits; break; } @@ -421,14 +421,14 @@ int _gnutls_dh_set_prime_bits( gnutls_session session, int bits) { info = _gnutls_get_auth_info(session); if (info == NULL) - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; info->dh_prime_bits = bits; break; } default: gnutls_assert(); - return GNUTLS_E_UNKNOWN_ERROR; + return GNUTLS_E_INTERNAL_ERROR; } |