summaryrefslogtreecommitdiff
path: root/lib/errors.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-04 09:06:32 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-04 11:08:51 +0200
commit68fc06c0a963fe1cd3e907dec1e2571c457f953a (patch)
tree0b00afd7c1b666b13c55e2bd1cf803fdba8ea595 /lib/errors.c
parentf10289f6d8c04111d3a7777f4ed9710a8114ef2f (diff)
downloadgnutls-68fc06c0a963fe1cd3e907dec1e2571c457f953a.tar.gz
introduced error code GNUTLS_E_PK_INVALID_PUBKEY_PARAMS
This is being use to indicate errors in the public key parameters such as the RSA-PSS salt size or digest algorithm. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/errors.c')
-rw-r--r--lib/errors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/errors.c b/lib/errors.c
index f870426a44..8cedd4a281 100644
--- a/lib/errors.c
+++ b/lib/errors.c
@@ -406,8 +406,10 @@ static const gnutls_error_entry error_entries[] = {
GNUTLS_E_IDNA_ERROR),
ERROR_ENTRY(N_("Cannot perform this action while handshake is in progress."),
GNUTLS_E_UNAVAILABLE_DURING_HANDSHAKE),
- ERROR_ENTRY(N_("The obtained public key is invalid."),
+ ERROR_ENTRY(N_("The public key is invalid."),
GNUTLS_E_PK_INVALID_PUBKEY),
+ ERROR_ENTRY(N_("The public key parameters are invalid."),
+ GNUTLS_E_PK_INVALID_PUBKEY_PARAMS),
ERROR_ENTRY(N_("The private key is invalid."),
GNUTLS_E_PK_INVALID_PRIVKEY),
ERROR_ENTRY(N_("The DER time encoding is invalid."),