8 static const char *
_hex =
"0123456789abcdef";
16 s->allocated = allocated;
30 if (!
s0 || !
s1 ||
s0->length == 0 ||
s1->length == 0) {
33 len =
s0->length +
s1->length - 1;
71 const int str_sz = 24;
112 const int str_sz = 24;
165 for (
k = 0;
k < 8 && j <
size;
k++, j++) {
166 str[
size - j - 1] =
c & 0x80 ?
'1' :
'0';
234 str[
k] = (
c >=
' ' &&
c <=
'~') ?
c :
'.';
315 if (
str->allocated) {
326 const char *
s =
"Unknown tag";
328 switch (object->
tag) {
335 case TAG_OID:
s =
"OBJECT IDENTIFIER";
break;
364 switch (object->
tag) {
371 if (object->
length < 16) {
struct rz_oid_list_t X509OIDList[]
RZ_API RASN1String * asn1_stringify_tag(RASN1Object *object)
RZ_API RASN1String * rz_asn1_stringify_time(const ut8 *buffer, ut32 length)
static RASN1String * newstr(const char *string)
RZ_API RASN1String * rz_asn1_concatenate_strings(RASN1String *s0, RASN1String *s1, bool freestr)
RZ_API RASN1String * rz_asn1_stringify_integer(const ut8 *buffer, ut32 length)
RZ_API RASN1String * rz_asn1_stringify_bits(const ut8 *buffer, ut32 length)
RZ_API RASN1String * rz_asn1_create_string(const char *string, bool allocated, ut32 length)
RZ_API RASN1String * rz_asn1_stringify_utctime(const ut8 *buffer, ut32 length)
RZ_API RASN1String * rz_asn1_stringify_bytes(const ut8 *buffer, ut32 length)
RZ_API RASN1String * rz_asn1_stringify_oid(const ut8 *buffer, ut32 length)
RZ_API RASN1String * rz_asn1_stringify_boolean(const ut8 *buffer, ut32 length)
RZ_API RASN1String * rz_asn1_stringify_string(const ut8 *buffer, ut32 length)
RZ_API void rz_asn1_free_string(RASN1String *str)
RZ_API RASN1String * asn1_stringify_sector(RASN1Object *object)
int bits(struct state *s, int need)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
RZ_API void Ht_() free(HtName_(Ht) *ht)
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
#define TAG_GRAPHICSTRING
#define TAG_GENERALIZEDTIME
#define TAG_GENERALSTRING
#define TAG_UNIVERSALSTRING
#define TAG_OBJDESCRIPTOR
#define TAG_PRINTABLESTRING
#define TAG_VISIBLESTRING
#define TAG_NUMERICSTRING
#define TAG_VIDEOTEXSTRING
RZ_API char * rz_str_ndup(RZ_NULLABLE const char *ptr, int len)
Create new copy of string ptr limited to size len.
RZ_API const char * rz_str_bool(int b)
RZ_API void rz_str_filter(char *str)
Convert all non-printable characters in str with '.'.
ut64(WINAPI *w32_GetEnabledXStateFeatures)()