OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr34448.c] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
typedef struct chunk_t chunk_t;
2
struct chunk_t
3
{
4
  unsigned char *ptr;
5
  long unsigned int len;
6
};
7
extern chunk_t asn1_wrap (chunk_t c, ...);
8
typedef struct linked_list_t linked_list_t;
9
chunk_t ietfAttr_list_encode (linked_list_t * list);
10
extern linked_list_t *groups;
11
static unsigned char ASN1_group_oid_str[] = {
12
    0x06
13
};
14
static const chunk_t ASN1_group_oid = {
15
  ASN1_group_oid_str, sizeof (ASN1_group_oid_str)
16
};
17
static chunk_t
18
build_attribute_type (const chunk_t type, chunk_t content)
19
{
20
  return type;
21
}
22
static chunk_t
23
build_attributes (void)
24
{
25
  return asn1_wrap (build_attribute_type (ASN1_group_oid,
26
                                          ietfAttr_list_encode (groups)));
27
}
28
void build_attr_cert (void)
29
{
30
  asn1_wrap (build_attributes ());
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.