kodi
|
Go to the source code of this file.
Classes | |
struct | _x509_ctx |
Typedefs | |
typedef struct _x509_ctx | X509_CTX |
typedef void(* | crypt_func) (void *, const uint8_t *, uint8_t *, int) |
typedef void(* | hmac_func) (const uint8_t *msg, int length, const uint8_t *key, int key_len, uint8_t *digest) |
Functions | |
int | x509_new (const uint8_t *cert, int *len, X509_CTX **ctx) |
Construct a new x509 object. More... | |
void | x509_free (X509_CTX *x509_ctx) |
Free an X.509 object's resources. | |
int | get_asn1_length (const uint8_t *buf, int *offset) |
int | asn1_get_private_key (const uint8_t *buf, int len, RSA_CTX **rsa_ctx) |
Get all the RSA private key specifics from an ASN.1 encoded file. | |
int | asn1_next_obj (const uint8_t *buf, int *offset, int obj_type) |
Skip the ASN1.1 object type and its length. More... | |
int | asn1_skip_obj (const uint8_t *buf, int *offset, int obj_type) |
Skip over an ASN.1 object type completely. More... | |
int | asn1_get_int (const uint8_t *buf, int *offset, uint8_t **object) |
Read an integer value for ASN.1 data Note: This function allocates memory which must be freed by the user. | |
int | asn1_version (const uint8_t *cert, int *offset, X509_CTX *x509_ctx) |
Get the version type of a certificate (which we don't actually care about) | |
int | asn1_validity (const uint8_t *cert, int *offset, X509_CTX *x509_ctx) |
Retrieve the notbefore and notafter certificate times. | |
int | asn1_name (const uint8_t *cert, int *offset, char *dn[]) |
Get the subject name (or the issuer) of a certificate. | |
int | asn1_public_key (const uint8_t *cert, int *offset, X509_CTX *x509_ctx) |
Read the modulus and public exponent of a certificate. | |
int | asn1_signature_type (const uint8_t *cert, int *offset, X509_CTX *x509_ctx) |
Read the signature type of the certificate. More... | |
int | get_file (const char *filename, uint8_t **buf) |
EXP_FUNC void STDCALL | print_blob (const char *format, const uint8_t *data, int size,...) |
EXP_FUNC int STDCALL | base64_decode (const char *in, int len, uint8_t *out, int *outlen) |
Variables | |
const char *const | unsupported_str |
int asn1_next_obj | ( | const uint8_t * | buf, |
int * | offset, | ||
int | obj_type | ||
) |
Skip the ASN1.1 object type and its length.
Get ready to read the object's data.
int asn1_signature_type | ( | const uint8_t * | cert, |
int * | offset, | ||
X509_CTX * | x509_ctx | ||
) |
Read the signature type of the certificate.
We only support RSA-MD5 and RSA-SHA1 signature types.
int asn1_skip_obj | ( | const uint8_t * | buf, |
int * | offset, | ||
int | obj_type | ||
) |
Skip over an ASN.1 object type completely.
Get ready to read the next object.
int x509_new | ( | const uint8_t * | cert, |
int * | len, | ||
X509_CTX ** | ctx | ||
) |
Construct a new x509 object.