hex_str() isn't used externally any more
This commit is contained in:
+11
-12
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user