Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rz_x509_validity_t |
struct | rz_x509_name_t |
struct | rz_x509_algorithmidentifier_t |
struct | rz_x509_authoritykeyidentifier_t |
struct | rz_x509_subjectpublickeyinfo_t |
struct | rz_x509_extension_t |
struct | rz_x509_extensions_t |
struct | rz_x509_tbscertificate_t |
struct | rz_x509_certificate_t |
struct | rz_x509_crlentry |
struct | rz_x509_certificaterevocationlist |
Typedefs | |
typedef struct rz_x509_validity_t | RX509Validity |
typedef struct rz_x509_name_t | RX509Name |
typedef struct rz_x509_algorithmidentifier_t | RX509AlgorithmIdentifier |
typedef struct rz_x509_authoritykeyidentifier_t | RX509AuthorityKeyIdentifier |
typedef struct rz_x509_subjectpublickeyinfo_t | RX509SubjectPublicKeyInfo |
typedef struct rz_x509_extension_t | RX509Extension |
typedef struct rz_x509_extensions_t | RX509Extensions |
typedef struct rz_x509_tbscertificate_t | RX509TBSCertificate |
typedef struct rz_x509_certificate_t | RX509Certificate |
typedef struct rz_x509_crlentry | RX509CRLEntry |
typedef struct rz_x509_certificaterevocationlist | RX509CertificateRevocationList |
Functions | |
RZ_API RX509CertificateRevocationList * | rz_x509_parse_crl (RASN1Object *object) |
RZ_API char * | rz_x509_crl_to_string (RX509CertificateRevocationList *crl, const char *pad) |
RZ_API void | rz_x509_crl_json (PJ *pj, RX509CertificateRevocationList *crl) |
RZ_API RX509Certificate * | rz_x509_parse_certificate (RASN1Object *object) |
RZ_API RX509Certificate * | rz_x509_parse_certificate2 (const ut8 *buffer, ut32 length) |
RZ_API void | rz_x509_free_certificate (RX509Certificate *certificate) |
RZ_API void | rz_x509_certificate_json (PJ *pj, RX509Certificate *certificate) |
RZ_API void | rz_x509_certificate_dump (RX509Certificate *cert, const char *pad, RzStrBuf *sb) |
typedef struct rz_x509_algorithmidentifier_t RX509AlgorithmIdentifier |
typedef struct rz_x509_authoritykeyidentifier_t RX509AuthorityKeyIdentifier |
typedef struct rz_x509_certificate_t RX509Certificate |
typedef struct rz_x509_certificaterevocationlist RX509CertificateRevocationList |
typedef struct rz_x509_crlentry RX509CRLEntry |
typedef struct rz_x509_extension_t RX509Extension |
typedef struct rz_x509_extensions_t RX509Extensions |
typedef struct rz_x509_name_t RX509Name |
typedef struct rz_x509_subjectpublickeyinfo_t RX509SubjectPublicKeyInfo |
typedef struct rz_x509_tbscertificate_t RX509TBSCertificate |
typedef struct rz_x509_validity_t RX509Validity |
RZ_API void rz_x509_certificate_dump | ( | RX509Certificate * | cert, |
const char * | pad, | ||
RzStrBuf * | sb | ||
) |
Definition at line 546 of file x509.c.
References rz_x509_algorithmidentifier_t::algorithm, rz_x509_certificate_t::algorithmIdentifier, free(), rz_asn1_bin_t::length, NULL, pad(), rz_str_newf(), rz_strbuf_appendf(), rz_x509_tbscertificate_dump(), sb, rz_x509_certificate_t::signature, rz_asn1_string_t::string, and rz_x509_certificate_t::tbsCertificate.
Referenced by cmd_print_fromage(), and rz_pkcs7_cms_to_string().
RZ_API void rz_x509_certificate_json | ( | PJ * | pj, |
RX509Certificate * | certificate | ||
) |
Definition at line 790 of file x509.c.
References rz_x509_algorithmidentifier_t::algorithm, rz_x509_certificate_t::algorithmIdentifier, rz_asn1_bin_t::binary, rz_asn1_bin_t::length, regress::m, NULL, pj_end(), pj_k(), pj_ks(), pj_o(), rz_asn1_free_string(), rz_asn1_stringify_integer(), rz_x509_tbscertificate_json(), rz_x509_certificate_t::signature, rz_asn1_string_t::string, and rz_x509_certificate_t::tbsCertificate.
Referenced by rz_pkcs7_cms_json().
RZ_API void rz_x509_crl_json | ( | PJ * | pj, |
RX509CertificateRevocationList * | crl | ||
) |
Definition at line 719 of file x509.c.
References rz_x509_algorithmidentifier_t::algorithm, i, rz_x509_certificaterevocationlist::issuer, rz_x509_certificaterevocationlist::lastUpdate, rz_x509_certificaterevocationlist::length, rz_x509_certificaterevocationlist::nextUpdate, pj_a(), pj_end(), pj_k(), pj_ks(), pj_o(), rz_x509_certificaterevocationlist::revokedCertificates, rz_x509_crlentry_json(), rz_x509_name_json(), rz_x509_certificaterevocationlist::signature, and rz_asn1_string_t::string.
Referenced by rz_pkcs7_cms_json().
RZ_API char* rz_x509_crl_to_string | ( | RX509CertificateRevocationList * | crl, |
const char * | pad | ||
) |
Definition at line 592 of file x509.c.
References rz_x509_algorithmidentifier_t::algorithm, free(), i, rz_x509_certificaterevocationlist::issuer, rz_x509_certificaterevocationlist::lastUpdate, rz_x509_certificaterevocationlist::length, rz_x509_certificaterevocationlist::nextUpdate, NULL, pad(), rz_x509_certificaterevocationlist::revokedCertificates, rz_str_newf(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), rz_x509_crlentry_dump(), rz_x509_name_dump(), sb, rz_x509_certificaterevocationlist::signature, and rz_asn1_string_t::string.
Referenced by rz_pkcs7_cms_to_string().
RZ_API void rz_x509_free_certificate | ( | RX509Certificate * | certificate | ) |
Definition at line 387 of file x509.c.
References rz_x509_certificate_t::algorithmIdentifier, free(), rz_asn1_free_binary(), rz_x509_free_algorithmidentifier(), rz_x509_free_tbscertificate(), rz_x509_certificate_t::signature, and rz_x509_certificate_t::tbsCertificate.
Referenced by cmd_print_fromage(), and rz_pkcs7_free_extendedcertificatesandcertificates().
RZ_API RX509Certificate* rz_x509_parse_certificate | ( | RASN1Object * | object | ) |
Definition at line 217 of file x509.c.
References rz_x509_certificate_t::algorithmIdentifier, CLASS_UNIVERSAL, fail, rz_asn1_object_t::form, FORM_CONSTRUCTED, FORM_PRIMITIVE, rz_asn1_object_t::klass, rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, NULL, rz_asn1_list_t::objects, rz_asn1_create_binary(), rz_asn1_free_object(), RZ_FREE, RZ_NEW0, rz_x509_parse_algorithmidentifier(), rz_x509_parse_tbscertificate(), rz_asn1_object_t::sector, rz_x509_certificate_t::signature, TAG_BITSTRING, rz_x509_certificate_t::tbsCertificate, and autogen_x86imm::tmp.
Referenced by cmd_print_fromage(), rz_pkcs7_parse_extendedcertificatesandcertificates(), and rz_x509_parse_certificate2().
RZ_API RX509Certificate* rz_x509_parse_certificate2 | ( | const ut8 * | buffer, |
ut32 | length | ||
) |
Definition at line 249 of file x509.c.
References length, NULL, rz_asn1_create_object(), and rz_x509_parse_certificate().
RZ_API RX509CertificateRevocationList* rz_x509_parse_crl | ( | RASN1Object * | object | ) |
Definition at line 275 of file x509.c.
References calloc(), free(), i, rz_x509_certificaterevocationlist::issuer, rz_x509_certificaterevocationlist::lastUpdate, rz_asn1_list_t::length, rz_x509_certificaterevocationlist::length, length, rz_asn1_object_t::list, malloc(), memset(), rz_x509_certificaterevocationlist::nextUpdate, NULL, rz_asn1_list_t::objects, rz_x509_certificaterevocationlist::revokedCertificates, rz_asn1_stringify_utctime(), rz_x509_parse_algorithmidentifier(), rz_x509_parse_crlentry(), rz_x509_parse_name(), and rz_x509_certificaterevocationlist::signature.
Referenced by rz_pkcs7_parse_certificaterevocationlists().