hex_str() isn't used externally any more

This commit is contained in:
Andreas Steffen
2009-10-08 13:04:07 +02:00
parent e64b4e96c9
commit 878fc472e9
3 changed files with 159 additions and 13 deletions
+11 -12
View File
@@ -268,6 +268,17 @@ static err_t get_next_rdn(chunk_t *rdn, chunk_t * attribute, chunk_t *oid,
return NULL;
}
/**
* Prints a binary string in hexadecimal form
*/
static void hex_str(chunk_t bin, chunk_t *str)
{
u_int i;
update_chunk(str, snprintf(str->ptr,str->len,"0x"));
for (i=0; i < bin.len; i++)
update_chunk(str, snprintf(str->ptr,str->len,"%02X",*bin.ptr++));
}
/**
* Parses an ASN.1 distinguished name int its OID/value pairs
*/
@@ -356,18 +367,6 @@ int dn_count_wildcards(chunk_t dn)
return wildcards;
}
/**
* Prints a binary string in hexadecimal form
*/
void hex_str(chunk_t bin, chunk_t *str)
{
u_int i;
update_chunk(str, snprintf(str->ptr,str->len,"0x"));
for (i=0; i < bin.len; i++)
update_chunk(str, snprintf(str->ptr,str->len,"%02X",*bin.ptr++));
}
/** Converts a binary DER-encoded ASN.1 distinguished name
* into LDAP-style human-readable ASCII format
*/
-1
View File
@@ -43,7 +43,6 @@ extern const x509cert_t empty_x509cert;
extern bool same_keyid(chunk_t a, chunk_t b);
extern bool same_dn(chunk_t a, chunk_t b);
extern bool match_dn(chunk_t a, chunk_t b, int *wildcards);
extern void hex_str(chunk_t bin, chunk_t *str);
extern int dn_count_wildcards(chunk_t dn);
extern int dntoa(char *dst, size_t dstlen, chunk_t dn);
extern err_t atodn(char *src, chunk_t *dn);