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/pkcs7.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/pkcs7.c')
-rw-r--r-- | lib/x509/pkcs7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c index 532e691a54..15a1e17c25 100644 --- a/lib/x509/pkcs7.c +++ b/lib/x509/pkcs7.c @@ -290,7 +290,7 @@ gnutls_pkcs7_import(gnutls_pkcs7_t pkcs7, const gnutls_datum_t * data, **/ int gnutls_pkcs7_get_crt_raw2(gnutls_pkcs7_t pkcs7, - int indx, gnutls_datum_t *cert) + unsigned indx, gnutls_datum_t *cert) { int result, len; char root2[ASN1_MAX_NAME_SIZE]; @@ -372,7 +372,7 @@ gnutls_pkcs7_get_crt_raw2(gnutls_pkcs7_t pkcs7, **/ int gnutls_pkcs7_get_crt_raw(gnutls_pkcs7_t pkcs7, - int indx, void *certificate, + unsigned indx, void *certificate, size_t * certificate_size) { int ret; @@ -1527,7 +1527,7 @@ int gnutls_pkcs7_delete_crt(gnutls_pkcs7_t pkcs7, int indx) **/ int gnutls_pkcs7_get_crl_raw2(gnutls_pkcs7_t pkcs7, - int indx, gnutls_datum_t *crl) + unsigned indx, gnutls_datum_t *crl) { int result; char root2[ASN1_MAX_NAME_SIZE]; @@ -1585,7 +1585,7 @@ gnutls_pkcs7_get_crl_raw2(gnutls_pkcs7_t pkcs7, **/ int gnutls_pkcs7_get_crl_raw(gnutls_pkcs7_t pkcs7, - int indx, void *crl, size_t * crl_size) + unsigned indx, void *crl, size_t * crl_size) { int ret; gnutls_datum_t tmp = {NULL, 0}; |