From 51a9116016d4a2b5e13e474ca32fed4dd70dfacc Mon Sep 17 00:00:00 2001 From: Andreas Metzler Date: Sun, 3 Jan 2010 16:05:04 +0100 Subject: [PATCH] Typos: sructure, stucture. There is no function named create_stucture, but one named asn1_create_element. Signed-off-by: Nikos Mavrogiannopoulos --- lib/decoding.c | 8 ++++---- lib/structure.c | 2 +- tests/Test_indefinite.c | 2 +- tests/Test_tree.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/decoding.c b/lib/decoding.c index b79002c..dbc0de0 100644 --- a/lib/decoding.c +++ b/lib/decoding.c @@ -806,8 +806,8 @@ _asn1_get_indefinite_length_string (const unsigned char *der, int *len) * error occurred. * * Fill the structure *ELEMENT with values of a DER encoding - * string. The sructure must just be created with function - * 'create_stucture'. If an error occurs during the decoding + * string. The structure must just be created with function + * 'asn1_create_element'. If an error occurs during the decoding * procedure, the *ELEMENT is deleted and set equal to * %ASN1_TYPE_EMPTY. * @@ -1364,8 +1364,8 @@ asn1_der_decoding (ASN1_TYPE * element, const void *ider, int len, * error occurred. * * Fill the element named ELEMENTNAME with values of a DER encoding - * string. The sructure must just be created with function - * 'create_stucture'. The DER vector must contain the encoding + * string. The structure must just be created with function + * 'asn1_create_element'. The DER vector must contain the encoding * string of the whole STRUCTURE. If an error occurs during the * decoding procedure, the *STRUCTURE is deleted and set equal to * %ASN1_TYPE_EMPTY. diff --git a/lib/structure.c b/lib/structure.c index 3931651..687b010 100644 --- a/lib/structure.c +++ b/lib/structure.c @@ -670,7 +670,7 @@ _asn1_expand_identifier (ASN1_TYPE * node, ASN1_TYPE root) * Creates a structure of type @source_name. Example using * "pkix.asn": * - * rc = asn1_create_structure(cert_def, "PKIX1.Certificate", + * rc = asn1_create_element(cert_def, "PKIX1.Certificate", * certptr); * * Returns: diff --git a/tests/Test_indefinite.c b/tests/Test_indefinite.c index c750932..379ad34 100644 --- a/tests/Test_indefinite.c +++ b/tests/Test_indefinite.c @@ -24,7 +24,7 @@ /* File: Test_tree.c */ /* Description: Test sequences for these functions: */ /* asn1_visit_tree, */ -/* asn1_create_structure, */ +/* asn1_create_element, */ /* asn1_delete_structure, */ /* asn1_write_value, */ /* asn1_read_value, */ diff --git a/tests/Test_tree.c b/tests/Test_tree.c index f4ce056..e899ed6 100644 --- a/tests/Test_tree.c +++ b/tests/Test_tree.c @@ -24,7 +24,7 @@ /* File: Test_tree.c */ /* Description: Test sequences for these functions: */ /* asn1_visit_tree, */ -/* asn1_create_structure, */ +/* asn1_create_element, */ /* asn1_delete_structure, */ /* asn1_write_value, */ /* asn1_read_value, */ -- 2.7.4