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/includes/gnutls/pkcs7.h | |
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/includes/gnutls/pkcs7.h')
-rw-r--r-- | lib/includes/gnutls/pkcs7.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/includes/gnutls/pkcs7.h b/lib/includes/gnutls/pkcs7.h index e640a50da5..6d998bc458 100644 --- a/lib/includes/gnutls/pkcs7.h +++ b/lib/includes/gnutls/pkcs7.h @@ -58,7 +58,7 @@ int gnutls_pkcs7_get_signature_count(gnutls_pkcs7_t pkcs7); int gnutls_pkcs7_get_embedded_data(gnutls_pkcs7_t pkcs7, unsigned idx, gnutls_datum_t *data); int gnutls_pkcs7_get_crt_count(gnutls_pkcs7_t pkcs7); -int gnutls_pkcs7_get_crt_raw(gnutls_pkcs7_t pkcs7, int indx, +int gnutls_pkcs7_get_crt_raw(gnutls_pkcs7_t pkcs7, unsigned indx, void *certificate, size_t * certificate_size); int gnutls_pkcs7_set_crt_raw(gnutls_pkcs7_t pkcs7, @@ -67,7 +67,7 @@ int gnutls_pkcs7_set_crt(gnutls_pkcs7_t pkcs7, gnutls_x509_crt_t crt); int gnutls_pkcs7_delete_crt(gnutls_pkcs7_t pkcs7, int indx); 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 gnutls_pkcs7_get_crl_count(gnutls_pkcs7_t pkcs7); int gnutls_pkcs7_set_crl_raw(gnutls_pkcs7_t pkcs7, @@ -130,10 +130,10 @@ int gnutls_pkcs7_sign(gnutls_pkcs7_t pkcs7, int gnutls_pkcs7_get_crt_raw2(gnutls_pkcs7_t pkcs7, - int indx, gnutls_datum_t *cert); + unsigned indx, gnutls_datum_t *cert); int gnutls_pkcs7_get_crl_raw2(gnutls_pkcs7_t pkcs7, - int indx, gnutls_datum_t *crl); + unsigned indx, gnutls_datum_t *crl); int gnutls_pkcs7_print(gnutls_pkcs7_t pkcs7, gnutls_certificate_print_formats_t format, |