Lines Matching refs:asn

79 	GNode *asn;  in test_asn1_integers()  local
84 asn = egg_asn1x_create (test_asn1_tab, "TestIntegers"); in test_asn1_integers()
85 g_assert ("asn test structure is null" && asn != NULL); in test_asn1_integers()
93 ret = gkm_data_asn1_write_mpi (egg_asn1x_node (asn, "mpi", NULL), mpi); in test_asn1_integers()
97 data = egg_asn1x_encode (asn, NULL); in test_asn1_integers()
100 egg_asn1x_destroy (asn); in test_asn1_integers()
103 asn = egg_asn1x_create_and_decode (test_asn1_tab, "TestIntegers", data); in test_asn1_integers()
104 g_assert (asn != NULL); in test_asn1_integers()
106 ret = gkm_data_asn1_read_mpi (egg_asn1x_node (asn, "mpi", NULL), &mpt); in test_asn1_integers()
107 egg_asn1x_destroy (asn); in test_asn1_integers()
120 GNode *asn; in test_asn1_string_mpi() local
125 asn = egg_asn1x_create (test_asn1_tab, "TestStringMpi"); in test_asn1_string_mpi()
126 g_assert ("asn test structure is null" && asn != NULL); in test_asn1_string_mpi()
134 ret = gkm_data_asn1_write_string_mpi (egg_asn1x_node (asn, "mpi", NULL), mpi); in test_asn1_string_mpi()
138 data = egg_asn1x_encode (asn, NULL); in test_asn1_string_mpi()
141 egg_asn1x_destroy (asn); in test_asn1_string_mpi()
144 asn = egg_asn1x_create_and_decode (test_asn1_tab, "TestStringMpi", data); in test_asn1_string_mpi()
145 g_assert (asn != NULL); in test_asn1_string_mpi()
147 ret = gkm_data_asn1_read_string_mpi (egg_asn1x_node (asn, "mpi", NULL), &mpt); in test_asn1_string_mpi()
148 egg_asn1x_destroy (asn); in test_asn1_string_mpi()
161 GNode *asn; in test_asn1_bit_string() local
167 asn = egg_asn1x_create (test_asn1_tab, "TestBitString"); in test_asn1_bit_string()
168 g_assert ("asn test structure is null" && asn != NULL); in test_asn1_bit_string()
176 ret = gkm_data_asn1_write_bit_string (egg_asn1x_node (asn, "data", NULL), in test_asn1_bit_string()
181 data = egg_asn1x_encode (asn, NULL); in test_asn1_bit_string()
184 egg_asn1x_destroy (asn); in test_asn1_bit_string()
187 asn = egg_asn1x_create_and_decode (test_asn1_tab, "TestBitString", data); in test_asn1_bit_string()
188 g_assert (asn != NULL); in test_asn1_bit_string()
190 ret = gkm_data_asn1_read_bit_string (egg_asn1x_node (asn, "data", NULL), in test_asn1_bit_string()
192 egg_asn1x_destroy (asn); in test_asn1_bit_string()
207 GNode *asn; in test_asn1_string() local
212 asn = egg_asn1x_create (test_asn1_tab, "TestString"); in test_asn1_string()
213 g_assert ("asn test structure is null" && asn != NULL); in test_asn1_string()
220 ret = gkm_data_asn1_write_string (egg_asn1x_node (asn, "data", NULL), in test_asn1_string()
225 data = egg_asn1x_encode (asn, NULL); in test_asn1_string()
228 egg_asn1x_destroy (asn); in test_asn1_string()
231 asn = egg_asn1x_create_and_decode (test_asn1_tab, "TestString", data); in test_asn1_string()
232 g_assert (asn != NULL); in test_asn1_string()
234 ret = gkm_data_asn1_read_string (egg_asn1x_node (asn, "data", NULL), in test_asn1_string()
236 egg_asn1x_destroy (asn); in test_asn1_string()
249 GNode *asn; in test_asn1_oid() local
254 asn = egg_asn1x_create (test_asn1_tab, "TestOid"); in test_asn1_oid()
255 g_assert ("asn test structure is null" && asn != NULL); in test_asn1_oid()
262 ret = gkm_data_asn1_write_oid (egg_asn1x_node (asn, "oid", NULL), source); in test_asn1_oid()
266 data = egg_asn1x_encode (asn, NULL); in test_asn1_oid()
269 egg_asn1x_destroy (asn); in test_asn1_oid()
272 asn = egg_asn1x_create_and_decode (test_asn1_tab, "TestOid", data); in test_asn1_oid()
273 g_assert (asn != NULL); in test_asn1_oid()
275 ret = gkm_data_asn1_read_oid (egg_asn1x_node (asn, "oid", NULL), &target); in test_asn1_oid()
276 egg_asn1x_destroy (asn); in test_asn1_oid()