Skip to content

Commit

Permalink
Rename tag_searched in property
Browse files Browse the repository at this point in the history
The constants are PCSCv2_PART10_PROPERTY_* so property is a better
parameter name.


git-svn-id: svn:https://svn.debian.org/svn/pcsclite/trunk/contrib@6428 0ce88b0d-b2fd-0310-8134-9614164e65ea
  • Loading branch information
LudovicRousseau committed Aug 10, 2012
1 parent 84a0cc1 commit bca62bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions libPCSCv2part10/PCSCv2part10.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "PCSCv2part10.h"

int PCSCv2Part10_find_TLV_property_by_tag_from_buffer(
unsigned char *buffer, int length, int tag_searched, int * value_int)
unsigned char *buffer, int length, int property, int * value_int)
{
unsigned char *p;
int found = 0, len;
Expand All @@ -44,7 +44,7 @@ int PCSCv2Part10_find_TLV_property_by_tag_from_buffer(
p = buffer;
while (p-buffer < length)
{
if (*p++ == tag_searched)
if (*p++ == property)
{
found = 1;
break;
Expand Down Expand Up @@ -84,7 +84,7 @@ int PCSCv2Part10_find_TLV_property_by_tag_from_buffer(
} /* PCSCv2Part10_find_TLV_property_by_tag_from_buffer */

int PCSCv2Part10_find_TLV_property_by_tag_from_hcard(SCARDHANDLE hCard,
int tag_searched, int * value)
int property, int * value)
{
unsigned char buffer[MAX_BUFFER_SIZE];
LONG rv;
Expand Down Expand Up @@ -120,6 +120,6 @@ int PCSCv2Part10_find_TLV_property_by_tag_from_hcard(SCARDHANDLE hCard,
buffer, sizeof buffer, &length);

return PCSCv2Part10_find_TLV_property_by_tag_from_buffer(buffer,
length, tag_searched, value);
length, property, value);
}

8 changes: 4 additions & 4 deletions libPCSCv2part10/PCSCv2part10.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef struct
*
* @param buffer buffer received from FEATURE_GET_TLV_PROPERTIES
* @param length buffer length
* @param tag_searched tag searched
* @param property tag searched
* @param[out] value value found
* @return Error code
*
Expand All @@ -124,17 +124,17 @@ typedef struct
*
*/
int PCSCv2Part10_find_TLV_property_by_tag_from_buffer(
unsigned char *buffer, int length, int tag_searched, int * value);
unsigned char *buffer, int length, int property, int * value);

/**
* @brief Find a integer value by tag from a PC/SC card handle
* @ingroup API
*
* @param hCard card handle as returned by SCardConnect()
* @param tag_searched tag searched
* @param property tag searched
* @param[out] value value found
* @return Error code (see PCSCv2Part10_find_TLV_property_by_tag_from_buffer())
*/
int PCSCv2Part10_find_TLV_property_by_tag_from_hcard(SCARDHANDLE hCard,
int tag_searched, int * value);
int property, int * value);

0 comments on commit bca62bd

Please sign in to comment.