From: Simon Josefsson Date: Sat, 12 Feb 2005 15:35:59 +0000 (+0000) Subject: (gnutls_x509_crl_get_crt_serial): Don't use reserved word "index", X-Git-Tag: gnutls_1_2_1~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=588dca09df20fbd98b9a67c2105f861431306bc3;p=thirdparty%2Fgnutls.git (gnutls_x509_crl_get_crt_serial): Don't use reserved word "index", reported by Neil Spring . --- diff --git a/lib/x509/crl.c b/lib/x509/crl.c index 6f02991cb6..bd83d54fde 100644 --- a/lib/x509/crl.c +++ b/lib/x509/crl.c @@ -400,7 +400,7 @@ int gnutls_x509_crl_get_crt_count(gnutls_x509_crl_t crl) /** * gnutls_x509_crl_get_crt_serial - This function returns the serial number of a revoked certificate * @crl: should contain a gnutls_x509_crl_t structure - * @index: the index of the certificate to extract (starting from 0) + * @indx: the index of the certificate to extract (starting from 0) * @serial: where the serial number will be copied * @serial_size: initially holds the size of serial * @time: if non null, will hold the time this certificate was revoked @@ -411,7 +411,7 @@ int gnutls_x509_crl_get_crt_count(gnutls_x509_crl_t crl) * Returns a negative value on failure. * **/ -int gnutls_x509_crl_get_crt_serial(gnutls_x509_crl_t crl, int index, +int gnutls_x509_crl_get_crt_serial(gnutls_x509_crl_t crl, int indx, unsigned char *serial, size_t * serial_size, time_t * time) { @@ -426,7 +426,7 @@ int gnutls_x509_crl_get_crt_serial(gnutls_x509_crl_t crl, int index, return GNUTLS_E_INVALID_REQUEST; } - _gnutls_int2str(index + 1, str_index); + _gnutls_int2str(indx + 1, str_index); _gnutls_str_cpy(serial_name, sizeof(serial_name), "tbsCertList.revokedCertificates.?"); _gnutls_str_cat(serial_name, sizeof(serial_name), str_index);