diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-04 13:55:38 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-12-08 12:27:38 +0000 |
commit | 9510992c532e9046f887f6da055bb1bdb6118915 (patch) | |
tree | 38cd1146249c7eda6deb388abde8258ca6951379 /src/gsm/libosmogsm.map | |
parent | e24a5b559c9bae3ec76736d6e5d1c925aec6d7d1 (diff) |
Introduce 'osmo_tlv_prot' abstraction for validation of TLV protocols
This extends our existing TLV parser with the ability to
* validate that mandatory IEs of a given message are present
* validate that all present IEs are of required minimum length
Introducing this generic layer will help us to reduce open-coded
imperative verification across virtually all the protocols we
implement, as well as add validation to those protocols where we
don't properly perform related input validation yet.
Change-Id: If1e1d9adfa141ca86001dbd62a6a339f9bf9a912
Diffstat (limited to 'src/gsm/libosmogsm.map')
-rw-r--r-- | src/gsm/libosmogsm.map | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map index f339120c..bcded1ce 100644 --- a/src/gsm/libosmogsm.map +++ b/src/gsm/libosmogsm.map @@ -580,6 +580,11 @@ osmo_shift_tlv; osmo_match_shift_tlv; osmo_shift_lv; +osmo_tlv_prot_msg_name; +osmo_tlv_prot_ie_name; +osmo_tlv_prot_validate_tp; +osmo_tlv_prot_parse; + gan_msgt_vals; gan_pdisc_vals; |