Lines Matching refs:nd
332 mbedtls_asn1_named_data nd[] ={
338 mbedtls_asn1_named_data *pointers[ARRAY_LENGTH( nd ) + 1];
343 for( i = 0; i < ARRAY_LENGTH( nd ); i++ )
344 pointers[i] = &nd[i];
345 pointers[ARRAY_LENGTH( nd )] = NULL;
346 for( i = 0; i < ARRAY_LENGTH( nd ); i++ )
348 ASSERT_ALLOC( nd[i].oid.p, oid[i]->len );
349 memcpy( nd[i].oid.p, oid[i]->x, oid[i]->len );
350 nd[i].oid.len = oid[i]->len;
351 nd[i].next = pointers[i+1];
361 for( i = 0; i < ARRAY_LENGTH( nd ); i++ )
362 TEST_ASSERT( nd[i].next == pointers[i+1] );
375 for( i = 0; i < ARRAY_LENGTH( nd ); i++ )
376 TEST_ASSERT( found != &nd[i] );
385 for( i = 0; i < ARRAY_LENGTH( nd ); i++ )
386 mbedtls_free( nd[i].oid.p );
393 mbedtls_asn1_named_data nd =
395 mbedtls_asn1_named_data *head = &nd;
402 ASSERT_ALLOC( nd.val.p, (size_t) old_len );
403 old_val = nd.val.p;
404 nd.val.len = old_len;
415 TEST_ASSERT( head == &nd );
429 mbedtls_free( nd.val.p );