summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-22 21:59:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-22 21:59:42 +0000
commit0e1789b3f1897512eb30d63c8e9803f1461446c1 (patch)
tree3ad1c147a43aaba27eb12fa1af66ed149041ddb5 /include
parenta3648e0df0ff53fef74e5437ff089aef96209db2 (diff)
Add safe version of sdp_extract_pdu function
Diffstat (limited to 'include')
-rw-r--r--include/sdp_lib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sdp_lib.h b/include/sdp_lib.h
index 2323abfc..8df540c6 100644
--- a/include/sdp_lib.h
+++ b/include/sdp_lib.h
@@ -585,9 +585,11 @@ static inline int sdp_get_icon_url(const sdp_record_t *rec, char *str, int len)
return sdp_get_string_attr(rec, SDP_ATTR_ICON_URL, str, len);
}
-sdp_record_t *sdp_extract_pdu(const uint8_t *pdata, int *scanned);
sdp_data_t *sdp_extract_string(uint8_t *, int *);
+sdp_record_t *sdp_extract_pdu(const uint8_t *pdata, int *scanned);
+sdp_record_t *sdp_extract_pdu_safe(const uint8_t *pdata, int bufsize, int *scanned);
+
void sdp_data_print(sdp_data_t *data);
void sdp_print_service_attr(sdp_list_t *alist);