Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
RZ_API void rz_x509_free_algorithmidentifier | ( | RX509AlgorithmIdentifier * | ai | ) |
Definition at line 306 of file x509.c.
References rz_x509_algorithmidentifier_t::algorithm, rz_x509_algorithmidentifier_t::parameters, and rz_asn1_free_string().
Referenced by rz_pkcs7_free_digestalgorithmidentifier(), rz_pkcs7_free_signerinfo(), rz_pkcs7_free_spcmessagedigest(), rz_x509_free_certificate(), rz_x509_free_crl(), rz_x509_free_subjectpublickeyinfo(), and rz_x509_free_tbscertificate().
RZ_API void rz_x509_free_extension | ( | RX509Extension * | ex | ) |
Definition at line 338 of file x509.c.
References ex, free(), rz_asn1_free_binary(), and rz_asn1_free_string().
Referenced by rz_x509_free_extensions(), and rz_x509_parse_extensions().
RZ_API void rz_x509_free_extensions | ( | RX509Extensions * | ex | ) |
Definition at line 347 of file x509.c.
References ex, free(), i, and rz_x509_free_extension().
Referenced by rz_x509_free_tbscertificate().
Definition at line 322 of file x509.c.
References i, rz_asn1_free_string(), and RZ_FREE.
Referenced by rz_pkcs7_free_issuerandserialnumber(), rz_x509_free_crl(), and rz_x509_free_tbscertificate().
RZ_API void rz_x509_free_subjectpublickeyinfo | ( | RX509SubjectPublicKeyInfo * | spki | ) |
Definition at line 361 of file x509.c.
References rz_x509_subjectpublickeyinfo_t::algorithm, rz_asn1_free_binary(), rz_x509_free_algorithmidentifier(), rz_x509_subjectpublickeyinfo_t::subjectPublicKey, rz_x509_subjectpublickeyinfo_t::subjectPublicKeyExponent, and rz_x509_subjectpublickeyinfo_t::subjectPublicKeyModule.
Referenced by rz_x509_free_tbscertificate().
RZ_API void rz_x509_free_tbscertificate | ( | RX509TBSCertificate * | tbsc | ) |
Definition at line 371 of file x509.c.
References rz_x509_tbscertificate_t::extensions, rz_x509_tbscertificate_t::issuer, rz_x509_tbscertificate_t::issuerUniqueID, rz_asn1_free_binary(), rz_asn1_free_string(), rz_x509_free_algorithmidentifier(), rz_x509_free_extensions(), rz_x509_free_name(), rz_x509_free_subjectpublickeyinfo(), rz_x509_free_validity(), rz_x509_tbscertificate_t::serialNumber, rz_x509_tbscertificate_t::signature, rz_x509_tbscertificate_t::subject, rz_x509_tbscertificate_t::subjectPublicKeyInfo, rz_x509_tbscertificate_t::subjectUniqueID, and rz_x509_tbscertificate_t::validity.
Referenced by rz_x509_free_certificate().
Definition at line 434 of file x509.c.
References i, pad(), rz_strbuf_appendf(), and sb.
Referenced by rz_x509_crl_to_string(), rz_x509_signedinfo_dump(), and rz_x509_tbscertificate_dump().
RZ_API bool rz_x509_parse_algorithmidentifier | ( | RX509AlgorithmIdentifier * | ai, |
RASN1Object * | object | ||
) |
Definition at line 44 of file x509.c.
References rz_x509_algorithmidentifier_t::algorithm, is_oid_object(), rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, NULL, rz_asn1_list_t::objects, rz_x509_algorithmidentifier_t::parameters, rz_asn1_stringify_oid(), rz_return_val_if_fail, and rz_asn1_object_t::sector.
Referenced by rz_pkcs7_parse_digestalgorithmidentifier(), rz_pkcs7_parse_signerinfo(), rz_pkcs7_parse_spcmessagedigest(), rz_x509_parse_certificate(), rz_x509_parse_crl(), rz_x509_parse_subjectpublickeyinfo(), and rz_x509_parse_tbscertificate().
RZ_API RX509CRLEntry* rz_x509_parse_crlentry | ( | RASN1Object * | object | ) |
Definition at line 261 of file x509.c.
References rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, malloc(), NULL, rz_asn1_list_t::objects, rz_asn1_create_binary(), rz_asn1_stringify_utctime(), and rz_asn1_object_t::sector.
Referenced by rz_x509_parse_crl().
RZ_API bool rz_x509_parse_extension | ( | RX509Extension * | ext, |
RASN1Object * | object | ||
) |
Definition at line 122 of file x509.c.
References ext, rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, rz_asn1_list_t::objects, rz_asn1_create_binary(), rz_asn1_stringify_oid(), rz_asn1_object_t::sector, rz_asn1_object_t::tag, TAG_BOOLEAN, TAG_OCTETSTRING, and TAG_OID.
Referenced by rz_x509_parse_extensions().
RZ_API bool rz_x509_parse_extensions | ( | RX509Extensions * | ext, |
RASN1Object * | object | ||
) |
Definition at line 143 of file x509.c.
References calloc(), ext, i, rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, NULL, rz_asn1_list_t::objects, RZ_NEW0, rz_x509_free_extension(), and rz_x509_parse_extension().
Referenced by rz_x509_parse_tbscertificate().
RZ_API bool rz_x509_parse_name | ( | RX509Name * | name, |
RASN1Object * | object | ||
) |
Definition at line 79 of file x509.c.
References calloc(), CLASS_UNIVERSAL, rz_asn1_object_t::form, FORM_CONSTRUCTED, i, rz_asn1_object_t::klass, rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, rz_asn1_list_t::objects, rz_asn1_stringify_oid(), rz_asn1_stringify_string(), RZ_FREE, rz_asn1_object_t::sector, rz_asn1_object_t::tag, TAG_OID, TAG_SEQUENCE, and TAG_SET.
Referenced by rz_pkcs7_parse_issuerandserialnumber(), rz_x509_parse_crl(), and rz_x509_parse_tbscertificate().
RZ_API bool rz_x509_parse_subjectpublickeyinfo | ( | RX509SubjectPublicKeyInfo * | spki, |
RASN1Object * | object | ||
) |
Definition at line 57 of file x509.c.
References rz_x509_subjectpublickeyinfo_t::algorithm, rz_asn1_list_t::length, rz_asn1_object_t::length, rz_asn1_object_t::list, rz_asn1_list_t::objects, rz_asn1_create_binary(), rz_x509_parse_algorithmidentifier(), rz_asn1_object_t::sector, rz_x509_subjectpublickeyinfo_t::subjectPublicKey, rz_x509_subjectpublickeyinfo_t::subjectPublicKeyExponent, and rz_x509_subjectpublickeyinfo_t::subjectPublicKeyModule.
Referenced by rz_x509_parse_tbscertificate().
RZ_API bool rz_x509_parse_tbscertificate | ( | RX509TBSCertificate * | tbsc, |
RASN1Object * | object | ||
) |
Definition at line 164 of file x509.c.
References CLASS_CONTEXT, CLASS_UNIVERSAL, rz_x509_tbscertificate_t::extensions, rz_asn1_object_t::form, FORM_CONSTRUCTED, i, rz_x509_tbscertificate_t::issuer, rz_x509_tbscertificate_t::issuerUniqueID, rz_asn1_object_t::klass, rz_asn1_list_t::length, rz_asn1_object_t::length, length, rz_asn1_object_t::list, list(), rz_asn1_list_t::objects, rz_asn1_create_binary(), rz_asn1_stringify_integer(), rz_x509_parse_algorithmidentifier(), rz_x509_parse_extensions(), rz_x509_parse_name(), rz_x509_parse_subjectpublickeyinfo(), rz_x509_parse_validity(), rz_asn1_object_t::sector, rz_x509_tbscertificate_t::serialNumber, shift(), rz_x509_tbscertificate_t::signature, rz_x509_tbscertificate_t::subject, rz_x509_tbscertificate_t::subjectPublicKeyInfo, rz_x509_tbscertificate_t::subjectUniqueID, rz_asn1_object_t::tag, test-lz4-versions::tag, TAG_INTEGER, rz_x509_tbscertificate_t::validity, and rz_x509_tbscertificate_t::version.
Referenced by rz_x509_parse_certificate().