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/x509/verify-high.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/x509/verify-high.c')
-rw-r--r-- | lib/x509/verify-high.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c index 2b90936c11..6aa732c7d9 100644 --- a/lib/x509/verify-high.c +++ b/lib/x509/verify-high.c @@ -560,10 +560,10 @@ int ret; int gnutls_x509_trust_list_remove_cas(gnutls_x509_trust_list_t list, const gnutls_x509_crt_t * clist, - int clist_size) + unsigned clist_size) { - int i, r = 0; - unsigned j; + int r = 0; + unsigned j, i; uint32_t hash; for (i = 0; i < clist_size; i++) { @@ -700,11 +700,11 @@ gnutls_x509_trust_list_add_named_crt(gnutls_x509_trust_list_t list, int gnutls_x509_trust_list_add_crls(gnutls_x509_trust_list_t list, const gnutls_x509_crl_t * crl_list, - int crl_size, unsigned int flags, + unsigned crl_size, unsigned int flags, unsigned int verification_flags) { - int ret, i, j = 0; - unsigned x; + int ret; + unsigned x, i, j = 0; unsigned int vret = 0; uint32_t hash; |