VLC 4.0.0-dev
update.h File Reference
Include dependency graph for update.h:

Go to the source code of this file.

Data Structures

struct  public_key_packet_t
 
struct  signature_packet_t
 
struct  public_key_t
 
struct  update_download_thread_t
 Non blocking binary download. More...
 
struct  update_check_thread_t
 Non blocking update availability verification. More...
 
struct  update_t
 The update object. More...
 

Typedefs

typedef struct public_key_packet_t public_key_packet_t
 
typedef struct signature_packet_t signature_packet_t
 
typedef struct public_key_t public_key_t
 

Enumerations

enum  { SIGNATURE_PACKET = 0x02 , PUBLIC_KEY_PACKET = 0x06 , USER_ID_PACKET = 0x0d }
 
enum  {
  BINARY_SIGNATURE = 0x00 , TEXT_SIGNATURE = 0x01 , GENERIC_KEY_SIGNATURE = 0x10 , PERSONA_KEY_SIGNATURE = 0x11 ,
  CASUAL_KEY_SIGNATURE = 0x12 , POSITIVE_KEY_SIGNATURE = 0x13
}
 
enum  { ISSUER_SUBPACKET = 0x10 }
 

Functions

public_key_tdownload_key (vlc_object_t *p_this, const uint8_t *p_longid, const uint8_t *p_signature_issuer)
 
int parse_public_key (const uint8_t *p_key_data, size_t i_key_len, public_key_t *p_key, const uint8_t *p_sig_issuer)
 
int verify_signature (signature_packet_t *sign, public_key_packet_t *p_key, uint8_t *p_hash)
 
int download_signature (vlc_object_t *p_this, signature_packet_t *p_sig, const char *psz_url)
 
uint8_t * hash_from_text (const char *psz_text, signature_packet_t *p_sig)
 
uint8_t * hash_from_file (const char *psz_file, signature_packet_t *p_sig)
 
uint8_t * hash_from_public_key (public_key_t *p_pkey)
 

Typedef Documentation

◆ public_key_packet_t

◆ public_key_t

typedef struct public_key_t public_key_t

◆ signature_packet_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SIGNATURE_PACKET 
PUBLIC_KEY_PACKET 
USER_ID_PACKET 

◆ anonymous enum

anonymous enum
Enumerator
BINARY_SIGNATURE 
TEXT_SIGNATURE 
GENERIC_KEY_SIGNATURE 
PERSONA_KEY_SIGNATURE 
CASUAL_KEY_SIGNATURE 
POSITIVE_KEY_SIGNATURE 

◆ anonymous enum

anonymous enum
Enumerator
ISSUER_SUBPACKET 

Function Documentation

◆ download_key()

public_key_t * download_key ( vlc_object_t p_this,
const uint8_t *  p_longid,
const uint8_t *  p_signature_issuer 
)

◆ download_signature()

◆ hash_from_file()

uint8_t * hash_from_file ( const char *  psz_file,
signature_packet_t p_sig 
)

◆ hash_from_public_key()

◆ hash_from_text()

uint8_t * hash_from_text ( const char *  psz_text,
signature_packet_t p_sig 
)

◆ parse_public_key()

◆ verify_signature()

int verify_signature ( signature_packet_t sign,
public_key_packet_t p_key,
uint8_t *  p_hash 
)