diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-31 13:49:13 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-31 13:56:03 +0200 |
commit | 248e282fd4900db081c958e72021f307b1c9edba (patch) | |
tree | 66683de7f1f7e90b417f414ccb6caf264f15f243 /lib/crypto-api.c | |
parent | 05a70fa35d94c48ab9621f651f6f10c67931c4b1 (diff) | |
download | gnutls-248e282fd4900db081c958e72021f307b1c9edba.tar.gz |
several sign-related API changes
This replaces the usage of "int" in functions which could only
have accepted an "unsigned" value. Also functions which return
unsigned values are explicitly tagged as such. The ABI remains
the same with these changes.
This allows easier catching of sign/unsigned related errors from
the calling applications.
Diffstat (limited to 'lib/crypto-api.c')
-rw-r--r-- | lib/crypto-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto-api.c b/lib/crypto-api.c index e0d8089770..982148ab4a 100644 --- a/lib/crypto-api.c +++ b/lib/crypto-api.c @@ -419,7 +419,7 @@ void gnutls_hmac_deinit(gnutls_hmac_hd_t handle, void *digest) * * Since: 2.10.0 **/ -int gnutls_hmac_get_len(gnutls_mac_algorithm_t algorithm) +unsigned gnutls_hmac_get_len(gnutls_mac_algorithm_t algorithm) { return _gnutls_mac_get_algo_len(mac_to_entry(algorithm)); } @@ -549,7 +549,7 @@ void gnutls_hash_deinit(gnutls_hash_hd_t handle, void *digest) * * Since: 2.10.0 **/ -int gnutls_hash_get_len(gnutls_digest_algorithm_t algorithm) +unsigned gnutls_hash_get_len(gnutls_digest_algorithm_t algorithm) { return _gnutls_hash_get_algo_len(hash_to_entry(algorithm)); } |