Commit Graph

14 Commits

Author SHA1 Message Date
Harald Welte 2e7a6f8cdd fix some more memory leaks and make sure we always allocate dynamically 2010-07-20 00:17:03 +02:00
Harald Welte 57058f3600 Don't use stack-based libasn1c objects for component primitives
In order for the recursive free-ing of libasn1c data structures to
work, we cannot have some of them stack-allocated.
2010-07-19 18:33:53 +02:00
Harald Welte a764e40c80 bring libosm-tcap more in line with libasn1c's use of talloc
libasn1c expects all data structures to be heap-allocated, whereas
we used to allocate some of them on the stack, which causes problems
at free() time.

As a side-effect, we had to remove the 'struct tcap_component' and
replace its list_head in tcap_dialogue with a 'struct ComponentPortion'
2010-07-19 15:09:23 +02:00
Harald Welte 5a7afc24a7 switch to new 'pass by value' at the TCAP-User boundary
this will enable the TCAP-User to queue primitives at will, since they
don't hold references to any data inside the TCAP-layer
2010-07-18 23:39:22 +02:00
Harald Welte b618623844 Add AGPLv3 headers and copyright statements to all files 2010-07-18 17:17:17 +02:00
Harald Welte b37ec74502 fix compiler warnings 2010-07-18 10:12:32 +02:00
Harald Welte c29cc7c826 tcap_test: enable talloc report on exit 2010-07-18 01:25:32 +02:00
Harald Welte 6a06c081cd Fix encoding of DialoguePortion of TC-CONTINUE and TC-END 2010-07-18 01:09:24 +02:00
Harald Welte 1e2f04410b implement simplistic UDP transport for TCAP
Normally, TCAP is not spoken directly on top of UDP, however this
makes it really easy to test...
2010-07-17 21:43:00 +02:00
Harald Welte 5e130bfada tcap_test: continue the dialogue after TC-BEGIN.ind 2010-07-17 19:11:24 +02:00
Harald Welte ebe4d4bb33 add application context name to the tcap_test program 2010-07-16 23:56:43 +02:00
Harald Welte 9553cac8d2 tcap_test: Use properly encoded BER data for Invoke parameter 2010-07-16 21:49:55 +02:00
Harald Welte 096b22cfff Actually do the DER/BER encode and hexdump it
Also, implement the CONTINUE and END transactions.
2010-07-16 20:35:20 +02:00
Harald Welte deff1dd9da Add small test program for testing/debugging the TCAP library 2010-07-16 17:18:51 +02:00