From: Andreas Steffen Date: Sun, 8 Jun 2014 09:13:32 +0000 (+0200) Subject: Fixes in SWID entity support X-Git-Tag: 5.2.0dr6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=352fd7a94ba18601651007f84010f8e4fe12e05d;p=thirdparty%2Fstrongswan.git Fixes in SWID entity support --- diff --git a/src/libpts/plugins/imc_swid/regid.2004-03.org.strongswan_strongSwan.swidtag.in b/src/libpts/plugins/imc_swid/regid.2004-03.org.strongswan_strongSwan.swidtag.in index 03650fe5f0..8b7b50fdf0 100644 --- a/src/libpts/plugins/imc_swid/regid.2004-03.org.strongswan_strongSwan.swidtag.in +++ b/src/libpts/plugins/imc_swid/regid.2004-03.org.strongswan_strongSwan.swidtag.in @@ -8,13 +8,5 @@ - - + role="publisher licensor tagcreator"/> diff --git a/src/libpts/swid/swid_inventory.c b/src/libpts/swid/swid_inventory.c index 86f47a3573..e050e61298 100644 --- a/src/libpts/swid/swid_inventory.c +++ b/src/libpts/swid/swid_inventory.c @@ -159,7 +159,6 @@ static status_t generate_tags(private_swid_inventory_t *this, char *generator, { FILE *file; char command[BUF_LEN]; - char entity_name[] = "strongSwan Project"; char doc_separator[] = "'\n\n'"; status_t status = SUCCESS; @@ -169,10 +168,9 @@ static status_t generate_tags(private_swid_inventory_t *this, char *generator, /* Assemble the SWID generator command */ if (this->full_tags) { - snprintf(command, BUF_LEN, "%s swid --entity-name \"%s\" " - "--doc-separator %s%s%s", - generator, entity_name, doc_separator, - pretty ? " --pretty" : "", full ? " --full" : ""); + snprintf(command, BUF_LEN, "%s swid --doc-separator %s%s%s", + generator, doc_separator, pretty ? " --pretty" : "", + full ? " --full" : ""); } else { @@ -217,11 +215,9 @@ static status_t generate_tags(private_swid_inventory_t *this, char *generator, unique_sw_id.len, unique_sw_id.ptr); /* Assemble the SWID generator command */ - snprintf(command, BUF_LEN, "%s swid --software-id %s " - "--entity-name \"%s\"%s%s", - generator, software_id, entity_name, - pretty ? " --pretty" : "", - full ? " --full" : ""); + snprintf(command, BUF_LEN, "%s swid --software-id %s%s%s", + generator, software_id, pretty ? " --pretty" : "", + full ? " --full" : ""); /* Open a pipe stream for reading the SWID generator output */ file = popen(command, "r");