Skip to content

Commit

Permalink
CGI environment for online ASN.1 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
vlm committed Sep 19, 2004
1 parent 07cd6d8 commit 33cded1
Show file tree
Hide file tree
Showing 23 changed files with 1,057 additions and 71 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

0.9.6: 2004-Sep-19

* Added CGI for online ASN.1 compilation (asn1c/webcgi).

0.9.5: 2004-Sep-17

* Fixed CER (common BER) decoder code. See check-25.c/VisibleString
Expand Down
7 changes: 4 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ SUBDIRS = \
skeletons examples tests \
doc asn1c

EXTRA_DIST = BUGS MANIFEST

docsdir = $(datadir)/doc/asn1c

docs_DATA = INSTALL README FAQ BUGS TODO
docs_DATA = README FAQ COPYING ChangeLog BUGS TODO

EXTRA_DIST = asn1c.spec.in FAQ BUGS MANIFEST
CLEANFILES = asn1c.spec
20 changes: 12 additions & 8 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
host_triplet = @host@
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
TODO config.guess config.sub depcomp install-sh ltconfig \
ltmain.sh missing mkinstalldirs
$(srcdir)/Makefile.in $(srcdir)/asn1c.spec.in \
$(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
install-sh ltconfig ltmain.sh missing mkinstalldirs
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.in
Expand All @@ -49,7 +49,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno configure.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_FILES = asn1c.spec
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
Expand Down Expand Up @@ -132,7 +132,6 @@ PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH = @PATH@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
Expand Down Expand Up @@ -191,9 +190,10 @@ SUBDIRS = \
skeletons examples tests \
doc asn1c

EXTRA_DIST = BUGS MANIFEST
docsdir = $(datadir)/doc/asn1c
docs_DATA = INSTALL README FAQ BUGS TODO
docs_DATA = README FAQ COPYING ChangeLog BUGS TODO
EXTRA_DIST = asn1c.spec.in FAQ BUGS MANIFEST
CLEANFILES = asn1c.spec
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

Expand Down Expand Up @@ -248,6 +248,8 @@ $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)

distclean-hdr:
-rm -f config.h stamp-h1
asn1c.spec: $(top_builddir)/config.status $(srcdir)/asn1c.spec.in
cd $(top_builddir) && $(SHELL) ./config.status $@

mostlyclean-libtool:
-rm -f *.lo
Expand Down Expand Up @@ -399,6 +401,7 @@ distclean-tags:
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
$(mkdir_p) $(distdir)/.
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
Expand Down Expand Up @@ -560,6 +563,7 @@ install-strip:
mostlyclean-generic:

clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
Expand Down
23 changes: 14 additions & 9 deletions README
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
WHAT TO READ?
=============

For quick installation tips read INSTALL.
If you haven't installed the asn1c yet, read the INSTALL file for
a short installation guide.

For the list of asn1c command line options, see `asn1c -h` or `man asn1c`.

For more complete documentation on this compiler and on using the
results of compilation please look into ./doc directory.
results of compilation phase, please look into asn1c-usage.{pdf,html}.
If you are building the compiler from the sources, these documents reside
in the ./doc directory, otherwise they lie nearby the README file you're
reading right now.

Please also read the FAQ file.

Expand All @@ -19,18 +23,19 @@ QUICK START
After building [and installing] the compiler (see INSTALL), you may use
the asn1c command to compile the ASN.1 specification:

asn1c <module.asn1>
asn1c <module.asn1> # Compile module

If several specifications contain interdependencies, all of them must be
specified:

asn1c <module1.asn1> <module2.asn1> ...
asn1c <module1.asn1> <module2.asn1> ... # Compile interdependent modules

The ./examples directory contains several ASN.1 modules and a script to
extract ASN.1 modules from RFC documents. Refer to the README file in that
directory. To compile X.509 PKI module:
If you are building the asn1c from the sources, the ./examples directory
contains several ASN.1 modules and a script to extract the ASN.1 modules
from RFC documents. Refer to the README file in that directory.
To compile the X.509 PKI module:

./asn1c/asn1c -P ./examples/rfc3280-*.asn1
./asn1c/asn1c -P ./examples/rfc3280-*.asn1 # Compile-n-print

In this example, -P option is used to instruct the compiler to print the
compiled text on the standard output instead of creating multiple .c
Expand All @@ -44,7 +49,7 @@ to dump out the parsed (and fixed) ASN.1 specification as it was
whether a particular syntactic construction is properly supported
by the compiler.

asn1c -EF <module-to-test.asn1>
asn1c -EF <module-to-test.asn1> # Check semantic validity


MODEL OF OPERATION
Expand Down
2 changes: 1 addition & 1 deletion asn1c/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

SUBDIRS = . tests
SUBDIRS = . tests webcgi

AM_CFLAGS = @ADD_CFLAGS@
AM_CPPFLAGS = \
Expand Down
3 changes: 1 addition & 2 deletions asn1c/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH = @PATH@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
Expand Down Expand Up @@ -196,7 +195,7 @@ target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
SUBDIRS = . tests
SUBDIRS = . tests webcgi
AM_CFLAGS = @ADD_CFLAGS@
AM_CPPFLAGS = \
-I${top_srcdir}/libasn1compiler \
Expand Down
1 change: 0 additions & 1 deletion asn1c/tests/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH = @PATH@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
Expand Down
4 changes: 4 additions & 0 deletions asn1c/webcgi/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

noinst_SCRIPTS = asn1c.cgi
noinst_PROGRAMS = asn1c-suid-helper

Loading

0 comments on commit 33cded1

Please sign in to comment.