Greenbone Vulnerability Management Libraries 22.32.0
gvm_stream_validator Struct Reference

Data stream validator structure. More...

Collaboration diagram for gvm_stream_validator:
Collaboration graph

Data Fields

gchar * expected_hash_str
 Expected hash algorithm and hex string.
gchar * expected_hash_hex
 Expected hash value as hexadecimal string.
int algorithm
 The hash algorithm used.
size_t expected_size
 Expected amount of data to validate.
size_t current_size
 Current total amount of data received.
gboolean size_enforced
 TRUE enforce size checks; FALSE hash-only.
gcry_md_hd_t gcrypt_md_hd
 gcrypt message digest handle.

Detailed Description

Data stream validator structure.

Definition at line 24 of file streamvalidator.c.

Field Documentation

◆ algorithm

int gvm_stream_validator::algorithm

The hash algorithm used.

Definition at line 28 of file streamvalidator.c.

Referenced by gvm_stream_validator_end().

◆ current_size

size_t gvm_stream_validator::current_size

Current total amount of data received.

Definition at line 30 of file streamvalidator.c.

Referenced by gvm_stream_validator_end(), gvm_stream_validator_rewind(), and gvm_stream_validator_write().

◆ expected_hash_hex

gchar* gvm_stream_validator::expected_hash_hex

Expected hash value as hexadecimal string.

Definition at line 27 of file streamvalidator.c.

Referenced by gvm_stream_validator_end(), and gvm_stream_validator_free().

◆ expected_hash_str

gchar* gvm_stream_validator::expected_hash_str

Expected hash algorithm and hex string.

Definition at line 26 of file streamvalidator.c.

Referenced by gvm_stream_validator_free().

◆ expected_size

size_t gvm_stream_validator::expected_size

Expected amount of data to validate.

Definition at line 29 of file streamvalidator.c.

Referenced by gvm_stream_validator_end(), and gvm_stream_validator_write().

◆ gcrypt_md_hd

gcry_md_hd_t gvm_stream_validator::gcrypt_md_hd

gcrypt message digest handle.

Definition at line 32 of file streamvalidator.c.

Referenced by gvm_stream_validator_end(), gvm_stream_validator_free(), gvm_stream_validator_rewind(), and gvm_stream_validator_write().

◆ size_enforced

gboolean gvm_stream_validator::size_enforced

TRUE enforce size checks; FALSE hash-only.

Definition at line 31 of file streamvalidator.c.

Referenced by gvm_stream_validator_end(), and gvm_stream_validator_write().


The documentation for this struct was generated from the following file: