Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Variables | |
static const char * | _hex = "0123456789abcdef" |
RZ_API RASN1String* asn1_stringify_sector | ( | RASN1Object * | object | ) |
Definition at line 360 of file astr.c.
References rz_asn1_object_t::length, newstr(), NULL, rz_asn1_stringify_bits(), rz_asn1_stringify_bytes(), rz_asn1_stringify_integer(), rz_asn1_stringify_oid(), rz_asn1_stringify_string(), rz_asn1_stringify_time(), rz_asn1_stringify_utctime(), rz_str_bool(), rz_asn1_object_t::sector, rz_asn1_object_t::tag, TAG_BITSTRING, TAG_BOOLEAN, TAG_EOC, TAG_GENERALIZEDTIME, TAG_IA5STRING, TAG_INTEGER, TAG_NULL, TAG_NUMERICSTRING, TAG_OCTETSTRING, TAG_OID, TAG_PRINTABLESTRING, TAG_REAL, TAG_UTCTIME, TAG_UTF8STRING, and TAG_VISIBLESTRING.
RZ_API RASN1String* asn1_stringify_tag | ( | RASN1Object * | object | ) |
Definition at line 322 of file astr.c.
References newstr(), NULL, s, rz_asn1_object_t::tag, TAG_BITSTRING, TAG_BMPSTRING, TAG_BOOLEAN, TAG_EMBEDDED_PDV, TAG_ENUMERATED, TAG_EOC, TAG_EXTERNAL, TAG_GENERALIZEDTIME, TAG_GENERALSTRING, TAG_GRAPHICSTRING, TAG_IA5STRING, TAG_INTEGER, TAG_NULL, TAG_NUMERICSTRING, TAG_OBJDESCRIPTOR, TAG_OCTETSTRING, TAG_OID, TAG_PRINTABLESTRING, TAG_REAL, TAG_SEQUENCE, TAG_SET, TAG_T61STRING, TAG_UNIVERSALSTRING, TAG_UTCTIME, TAG_UTF8STRING, TAG_VIDEOTEXSTRING, and TAG_VISIBLESTRING.
|
static |
Definition at line 23 of file astr.c.
References rz_asn1_create_string().
Referenced by asn1_stringify_sector(), asn1_stringify_tag(), dem_str_replace(), file_vprintf(), filter(), parse_localvar(), replace(), rz_asn1_stringify_boolean(), rz_asn1_stringify_oid(), rz_cons_grepbuf(), rz_str_replace(), rz_str_replace_icase(), rz_str_replace_thunked(), rz_str_word_get0set(), subs_var_string(), and subvar().
RZ_API RASN1String* rz_asn1_concatenate_strings | ( | RASN1String * | s0, |
RASN1String * | s1, | ||
bool | freestr | ||
) |
Definition at line 27 of file astr.c.
References free(), len, malloc(), memcpy(), NULL, rz_asn1_create_string(), rz_asn1_free_string(), s0, s1, and cmd_descs_generate::str.
RZ_API RASN1String* rz_asn1_create_string | ( | const char * | string, |
bool | allocated, | ||
ut32 | length | ||
) |
Definition at line 10 of file astr.c.
References length, NULL, RZ_NEW0, and s.
Referenced by newstr(), rz_asn1_concatenate_strings(), rz_asn1_print_hexdump_padded(), rz_asn1_stringify_bits(), rz_asn1_stringify_bytes(), rz_asn1_stringify_integer(), rz_asn1_stringify_oid(), rz_asn1_stringify_string(), rz_asn1_stringify_time(), and rz_asn1_stringify_utctime().
RZ_API void rz_asn1_free_string | ( | RASN1String * | str | ) |
Definition at line 313 of file astr.c.
References free(), and cmd_descs_generate::str.
Referenced by rz_asn1_concatenate_strings(), rz_asn1_to_string(), rz_pkcs7_free_attribute(), rz_pkcs7_free_cms(), rz_pkcs7_free_contentinfo(), rz_pkcs7_free_spcdata(), rz_x509_certificate_json(), rz_x509_crlentry_dump(), rz_x509_crlentry_json(), rz_x509_extensions_json(), rz_x509_free_algorithmidentifier(), rz_x509_free_crl(), rz_x509_free_crlentry(), rz_x509_free_extension(), rz_x509_free_name(), rz_x509_free_tbscertificate(), rz_x509_free_validity(), rz_x509_signedinfo_dump(), rz_x509_signedinfo_json(), rz_x509_subjectpublickeyinfo_dump(), rz_x509_subjectpublickeyinfo_json(), rz_x509_tbscertificate_dump(), and rz_x509_tbscertificate_json().
RZ_API RASN1String* rz_asn1_stringify_bits | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 150 of file astr.c.
References c, free(), i, k, length, malloc(), NULL, rz_asn1_create_string(), cmd_descs_generate::str, and ut64().
Referenced by asn1_stringify_sector().
RZ_API RASN1String* rz_asn1_stringify_boolean | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
RZ_API RASN1String* rz_asn1_stringify_bytes | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 213 of file astr.c.
References _hex, c, free(), i, k, length, malloc(), memset(), NULL, rz_asn1_create_string(), cmd_descs_generate::str, and ut64().
Referenced by asn1_stringify_sector().
RZ_API RASN1String* rz_asn1_stringify_integer | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 185 of file astr.c.
References _hex, c, free(), i, length, malloc(), memset(), NULL, rz_asn1_create_string(), cmd_descs_generate::str, and ut64().
Referenced by asn1_stringify_sector(), rz_x509_certificate_json(), rz_x509_crlentry_dump(), rz_x509_crlentry_json(), rz_x509_extensions_json(), rz_x509_parse_tbscertificate(), rz_x509_signedinfo_dump(), rz_x509_signedinfo_json(), rz_x509_subjectpublickeyinfo_dump(), rz_x509_subjectpublickeyinfo_json(), rz_x509_tbscertificate_dump(), and rz_x509_tbscertificate_json().
RZ_API RASN1String* rz_asn1_stringify_oid | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 249 of file astr.c.
References ASN1_OID_LEN, bits(), c, calloc(), test_evm::end, free(), i, length, regress::m, n, newstr(), NULL, rz_asn1_create_string(), snprintf, start, cmd_descs_generate::str, ut64(), and X509OIDList.
Referenced by asn1_stringify_sector(), rz_asn1_to_string(), rz_pkcs7_parse_attribute(), rz_pkcs7_parse_cms(), rz_pkcs7_parse_contentinfo(), rz_pkcs7_parse_spcdata(), rz_x509_parse_algorithmidentifier(), rz_x509_parse_extension(), and rz_x509_parse_name().
RZ_API RASN1String* rz_asn1_stringify_string | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 55 of file astr.c.
References length, NULL, rz_asn1_create_string(), rz_str_filter(), rz_str_ndup(), and cmd_descs_generate::str.
Referenced by asn1_stringify_sector(), rz_asn1_to_string(), and rz_x509_parse_name().
RZ_API RASN1String* rz_asn1_stringify_time | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 108 of file astr.c.
References free(), length, malloc(), NULL, rz_asn1_create_string(), and cmd_descs_generate::str.
Referenced by asn1_stringify_sector(), rz_asn1_to_string(), and rz_x509_parse_validity().
RZ_API RASN1String* rz_asn1_stringify_utctime | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 67 of file astr.c.
References free(), length, malloc(), NULL, rz_asn1_create_string(), and cmd_descs_generate::str.
Referenced by asn1_stringify_sector(), rz_asn1_to_string(), rz_x509_parse_crl(), rz_x509_parse_crlentry(), and rz_x509_parse_validity().
|
static |
Definition at line 8 of file astr.c.
Referenced by rz_asn1_stringify_bytes(), and rz_asn1_stringify_integer().