aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/minitasn1/structure.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/minitasn1/structure.c')
-rw-r--r--src/daemon/https/minitasn1/structure.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/daemon/https/minitasn1/structure.c b/src/daemon/https/minitasn1/structure.c
index 6a910af6..8a5c899d 100644
--- a/src/daemon/https/minitasn1/structure.c
+++ b/src/daemon/https/minitasn1/structure.c
@@ -37,7 +37,8 @@
37 37
38extern char MHD__asn1_identifierMissing[]; 38extern char MHD__asn1_identifierMissing[];
39 39
40static node_asn *MHD__asn1_copy_structure2 (node_asn * root, const char *source_name); 40static node_asn *MHD__asn1_copy_structure2 (node_asn * root,
41 const char *source_name);
41 42
42 43
43 44
@@ -106,7 +107,7 @@ MHD__asn1_find_left (node_asn * node)
106 **/ 107 **/
107MHD__asn1_retCode 108MHD__asn1_retCode
108MHD__asn1_array2tree (const ASN1_ARRAY_TYPE * array, ASN1_TYPE * definitions, 109MHD__asn1_array2tree (const ASN1_ARRAY_TYPE * array, ASN1_TYPE * definitions,
109 char *errorDescription) 110 char *errorDescription)
110{ 111{
111 node_asn *p, *p_last = NULL; 112 node_asn *p, *p_last = NULL;
112 unsigned long k; 113 unsigned long k;
@@ -421,7 +422,7 @@ MHD__asn1_type_choice_config (node_asn * node)
421 if (type_field (p3->type) == TYPE_TAG) 422 if (type_field (p3->type) == TYPE_TAG)
422 { 423 {
423 p4 = MHD__asn1_add_node_only (p3->type); 424 p4 = MHD__asn1_add_node_only (p3->type);
424 tlen = strlen ((const char*) p3->value); 425 tlen = strlen ((const char *) p3->value);
425 if (tlen > 0) 426 if (tlen > 0)
426 MHD__asn1_set_value (p4, p3->value, tlen + 1); 427 MHD__asn1_set_value (p4, p3->value, tlen + 1);
427 MHD__asn1_set_right (p4, p2->down); 428 MHD__asn1_set_right (p4, p2->down);
@@ -497,7 +498,8 @@ MHD__asn1_expand_identifier (node_asn ** node, node_asn * root)
497 { 498 {
498 MHD__asn1_str_cpy (name2, sizeof (name2), root->name); 499 MHD__asn1_str_cpy (name2, sizeof (name2), root->name);
499 MHD__asn1_str_cat (name2, sizeof (name2), "."); 500 MHD__asn1_str_cat (name2, sizeof (name2), ".");
500 MHD__asn1_str_cat (name2, sizeof (name2), (const char*) p->value); 501 MHD__asn1_str_cat (name2, sizeof (name2),
502 (const char *) p->value);
501 p2 = MHD__asn1_copy_structure2 (root, name2); 503 p2 = MHD__asn1_copy_structure2 (root, name2);
502 if (p2 == NULL) 504 if (p2 == NULL)
503 { 505 {
@@ -606,7 +608,7 @@ MHD__asn1_expand_identifier (node_asn ** node, node_asn * root)
606 **/ 608 **/
607MHD__asn1_retCode 609MHD__asn1_retCode
608MHD__asn1_create_element (ASN1_TYPE definitions, const char *source_name, 610MHD__asn1_create_element (ASN1_TYPE definitions, const char *source_name,
609 ASN1_TYPE * element) 611 ASN1_TYPE * element)
610{ 612{
611 node_asn *dest_node; 613 node_asn *dest_node;
612 int res; 614 int res;
@@ -685,7 +687,8 @@ MHD__asn1_number_of_elements (ASN1_TYPE element, const char *name, int *num)
685 * 687 *
686 **/ 688 **/
687const char * 689const char *
688MHD__asn1_find_structure_from_oid (ASN1_TYPE definitions, const char *oidValue) 690MHD__asn1_find_structure_from_oid (ASN1_TYPE definitions,
691 const char *oidValue)
689{ 692{
690 char definitionsName[MAX_NAME_SIZE], name[2 * MAX_NAME_SIZE + 1]; 693 char definitionsName[MAX_NAME_SIZE], name[2 * MAX_NAME_SIZE + 1];
691 char value[MAX_NAME_SIZE]; 694 char value[MAX_NAME_SIZE];
@@ -741,7 +744,7 @@ MHD__asn1_find_structure_from_oid (ASN1_TYPE definitions, const char *oidValue)
741 **/ 744 **/
742MHD__asn1_retCode 745MHD__asn1_retCode
743MHD__asn1_copy_node (ASN1_TYPE dst, const char *dst_name, 746MHD__asn1_copy_node (ASN1_TYPE dst, const char *dst_name,
744 ASN1_TYPE src, const char *src_name) 747 ASN1_TYPE src, const char *src_name)
745{ 748{
746/* FIXME: rewrite using copy_structure(). 749/* FIXME: rewrite using copy_structure().
747 * It seems quite hard to do. 750 * It seems quite hard to do.