diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-03-02 11:18:12 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-03-02 14:46:05 +0100 |
commit | 7ac0e16bde3b54ed6b6f435a88f180b64056f9f7 (patch) | |
tree | 15aa82cfc2a0c7170587f674ab3ad082b51a7660 /lib/pk.h | |
parent | 8bc71dc0ed272c10b6430a678858b8e973828cf8 (diff) | |
download | gnutls-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |