remove unused internal function

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2534 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2005-09-04 08:57:17 +00:00
parent ff14d0d482
commit 9ca1bc2a09
2 changed files with 0 additions and 19 deletions

View File

@ -121,24 +121,6 @@ void sc_copy_asn1_entry(const struct sc_asn1_entry *src,
dest->name = NULL;
}
size_t _sc_count_bit_string_size(const void * buf, size_t bufsize)
{
const u8 *p = (const u8 *) buf + bufsize - 1;
u8 c;
size_t skip = 0;
int i;
while (p >= (const u8 *) buf && *p == 0) {
skip += 8;
p--;
}
if (p < (const u8 *) buf)
return 0;
c = *p;
for (i = 0; (c >> (7-i)) == 0; i++);
return bufsize * 8 - (skip + i);
}
static void sc_asn1_print_octet_string(const u8 * buf, size_t buflen)
{
size_t i;

View File

@ -57,7 +57,6 @@ struct sc_atr_table {
/* Internal use only */
int sc_check_sw(struct sc_card *card, unsigned int sw1, unsigned int sw2);
size_t _sc_count_bit_string_size(const void * buf, size_t bufsize);
int _sc_add_reader(struct sc_context *ctx, struct sc_reader *reader);
int _sc_parse_atr(struct sc_context *ctx, struct sc_slot_info *slot);