summaryrefslogtreecommitdiff
path: root/lib/structure.c
diff options
context:
space:
mode:
authorFabio Fiorina <fiorinaf@gnutls.org>2003-02-05 19:50:48 +0000
committerFabio Fiorina <fiorinaf@gnutls.org>2003-02-05 19:50:48 +0000
commitf9b2cd36e3eab09695cb56941372e4942fd85b85 (patch)
tree55487edac132dbfdefef8ac4d873dda1cf6eaba3 /lib/structure.c
parentd5ac51e4cefcdb1062bb29451545b2f08b82a515 (diff)
downloadlibtasn1-f9b2cd36e3eab09695cb56941372e4942fd85b85.tar.gz
libtasn1-f9b2cd36e3eab09695cb56941372e4942fd85b85.tar.bz2
libtasn1-f9b2cd36e3eab09695cb56941372e4942fd85b85.zip
change asn1_create_element interface
Diffstat (limited to 'lib/structure.c')
-rw-r--r--lib/structure.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/structure.c b/lib/structure.c
index e187ef0..5a6e612 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -533,7 +533,7 @@ _asn1_expand_identifier(node_asn **node,node_asn *root)
* ASN1_ELEMENT_NOT_FOUND\: SOURCE_NAME isn't known
*
* Example: using "pkix.asn"
- * result=asn1_create_structure(cert_def,"PKIX1.Certificate",&cert,"certificate1");
+ * result=asn1_create_structure(cert_def,"PKIX1.Certificate",&cert);
**/
asn1_retCode
asn1_create_element(ASN1_TYPE definitions,const char *source_name,
@@ -542,10 +542,6 @@ asn1_create_element(ASN1_TYPE definitions,const char *source_name,
node_asn *dest_node;
int res;
- if(*element!=ASN1_TYPE_EMPTY){
- asn1_delete_structure(element);
- }
-
dest_node=_asn1_copy_structure2(definitions,source_name);
if(dest_node==NULL) return ASN1_ELEMENT_NOT_FOUND;