summaryrefslogtreecommitdiff
path: root/lib/pk.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-03-02 11:18:12 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-03-02 14:46:05 +0100
commit7ac0e16bde3b54ed6b6f435a88f180b64056f9f7 (patch)
tree15aa82cfc2a0c7170587f674ab3ad082b51a7660 /lib/pk.h
parent8bc71dc0ed272c10b6430a678858b8e973828cf8 (diff)
downloadgnutls-7ac0e16bde3b54ed6b6f435a88f180b64056f9f7.tar.gz
_gnutls_find_rsa_pss_salt_size: add a validity check for salt size
That is, in order to reject invalid parameters. Resolves #402 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pk.h')
-rw-r--r--lib/pk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pk.h b/lib/pk.h
index 7ff76d12df..a6eb043333 100644
--- a/lib/pk.h
+++ b/lib/pk.h
@@ -104,7 +104,7 @@ int pk_hash_data(gnutls_pk_algorithm_t pk, const mac_entry_st * hash,
gnutls_pk_params_st * params, const gnutls_datum_t * data,
gnutls_datum_t * digest);
-unsigned _gnutls_find_rsa_pss_salt_size(unsigned bits, const mac_entry_st *me,
- unsigned salt_size);
+int _gnutls_find_rsa_pss_salt_size(unsigned bits, const mac_entry_st *me,
+ unsigned salt_size);
#endif /* GNUTLS_PK_H */