[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU libtasn1 branch, master, updated. libtasn1_2_9-13-g6172ede
From: |
Simon Josefsson |
Subject: |
[SCM] GNU libtasn1 branch, master, updated. libtasn1_2_9-13-g6172ede |
Date: |
Tue, 25 Oct 2011 13:41:28 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU libtasn1".
http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=6172ede34fb7c69727b5e3a828ecbf0b78fe3e4f
The branch, master has been updated
via 6172ede34fb7c69727b5e3a828ecbf0b78fe3e4f (commit)
from 26da37cb350ad84d3088cf1b07b15cf9d345edb1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6172ede34fb7c69727b5e3a828ecbf0b78fe3e4f
Author: Simon Josefsson <address@hidden>
Date: Tue Oct 25 15:41:14 2011 +0200
asn1Coding: Implement the -c parameter.
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
src/asn1Coding.c | 36 +++++++++++++++++++-----------------
2 files changed, 20 insertions(+), 17 deletions(-)
diff --git a/NEWS b/NEWS
index 8c91b4c..49f0c36 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ GNU Libtasn1 NEWS -*-
outline -*-
* Noteworthy changes in release 2.10 (????-??-??) [stable]
- build: Update gnulib files.
+- asn1Coding: actually implement the -c parameter.
* Noteworthy changes in release 2.9 (2010-12-06) [stable]
- tests: Link to gnulib to avoid build error related to 'rpl_ftello' on
Solaris.
diff --git a/src/asn1Coding.c b/src/asn1Coding.c
index 106e0d0..3230984 100644
--- a/src/asn1Coding.c
+++ b/src/asn1Coding.c
@@ -309,29 +309,31 @@ main (int argc, char *argv[])
asn1_delete_structure (&definitions);
asn1_delete_structure (&structure);
+ if (!checkSyntaxOnly)
+ {
+ if (outputFileName == NULL)
+ createFileName (inputFileAssignmentName, &outputFileName);
- if (outputFileName == NULL)
- createFileName (inputFileAssignmentName, &outputFileName);
+ printf ("\nOutputFile=%s\n", outputFileName);
- printf ("\nOutputFile=%s\n", outputFileName);
+ outputFile = fopen (outputFileName, "w");
- outputFile = fopen (outputFileName, "w");
+ if (outputFile == NULL)
+ {
+ printf ("asn1Coding: output file '%s' not available\n",
outputFileName);
+ free (der);
+ free (inputFileAsnName);
+ free (inputFileAssignmentName);
+ free (outputFileName);
+ exit (1);
+ }
- if (outputFile == NULL)
- {
- printf ("asn1Coding: output file '%s' not available\n", outputFileName);
- free (der);
- free (inputFileAsnName);
- free (inputFileAssignmentName);
- free (outputFileName);
- exit (1);
+ for (k = 0; k < der_len; k++)
+ fprintf (outputFile, "%c", der[k]);
+ fclose (outputFile);
+ printf ("\nWriting: done.\n");
}
- for (k = 0; k < der_len; k++)
- fprintf (outputFile, "%c", der[k]);
- fclose (outputFile);
- printf ("\nWriting: done.\n");
-
free (der);
free (inputFileAsnName);
hooks/post-receive
--
GNU libtasn1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_9-13-g6172ede,
Simon Josefsson <=