[Midnightbsd-cvs] src [7139] trunk/crypto/heimdal/lib: remove old files
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jul 25 00:23:18 EDT 2015
Revision: 7139
http://svnweb.midnightbsd.org/src/?rev=7139
Author: laffer1
Date: 2015-07-25 00:23:17 -0400 (Sat, 25 Jul 2015)
Log Message:
-----------
remove old files
Removed Paths:
-------------
trunk/crypto/heimdal/lib/45/
trunk/crypto/heimdal/lib/NTMakefile
trunk/crypto/heimdal/lib/asn1/NTMakefile
trunk/crypto/heimdal/lib/asn1/asn1_compile-version.rc
trunk/crypto/heimdal/lib/asn1/check-ber.c
trunk/crypto/heimdal/lib/asn1/check-template.c
trunk/crypto/heimdal/lib/asn1/libasn1-exports.def
trunk/crypto/heimdal/lib/asn1/parse.c
trunk/crypto/heimdal/lib/asn1/parse.h
trunk/crypto/heimdal/lib/roken/NTMakefile
trunk/crypto/heimdal/lib/roken/ecalloc.cat3
trunk/crypto/heimdal/lib/roken/getarg.cat3
trunk/crypto/heimdal/lib/roken/getifaddrs-test.c
trunk/crypto/heimdal/lib/roken/parse_time.cat3
trunk/crypto/heimdal/lib/roken/rtbl.cat3
trunk/crypto/heimdal/lib/roken/snprintf-test.h
trunk/crypto/heimdal/lib/roken/tsearch-test.c
trunk/crypto/heimdal/lib/roken/vis.h
Deleted: trunk/crypto/heimdal/lib/NTMakefile
===================================================================
--- trunk/crypto/heimdal/lib/NTMakefile 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/NTMakefile 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,72 +0,0 @@
-########################################################################
-#
-# Copyright (c) 2009,2011, Secure Endpoints Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# - Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# - Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-!ifdef KRB4
-dir_45 = 45
-!endif
-!ifdef OTP
-dir_otp = otp
-!endif
-!ifdef DCE
-dir_dce = kdfs
-!endif
-!ifndef HAVE_OPENSSL
-dir_hcrypto = hcrypto
-!endif
-
-SUBDIRS = vers com_err sl wind asn1 sqlite \
- $(dir_hcrypto) hx509 krb5 heimdal ntlm kafs gssapi hdb \
- kadm5 $(dir_45) $(dir_otp) $(dir_dce) ..\packages\windows\assembly
-
-!include ../windows/NTMakefile.w32
-
-# We can't build some of the lib tools until after we have LIBHEIMDAL.
-# So we build tools in a separate build step:
-
-all:: all-tools
-
-all-tools:: asn1-tools hx509-tools krb5-tools kadm5-tools gss-tools
-
-asn1-tools:
- @( cd asn1 && $(RMAKE) all-tools && cd .. ) || exit /b 1
-
-hx509-tools:
- @( cd hx509 && $(RMAKE) all-tools && cd .. ) || exit /b 1
-
-krb5-tools:
- @( cd krb5 && $(RMAKE) all-tools && cd .. ) || exit /b 1
-
-kadm5-tools:
- @( cd kadm5 && $(RMAKE) all-tools && cd .. ) || exit /b 1
-
-gss-tools:
- @( cd gssapi && $(RMAKE) all-tools && cd ..) || exit /b 1
Deleted: trunk/crypto/heimdal/lib/asn1/NTMakefile
===================================================================
--- trunk/crypto/heimdal/lib/asn1/NTMakefile 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/NTMakefile 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,356 +0,0 @@
-########################################################################
-#
-# Copyright (c) 2009, Secure Endpoints Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# - Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# - Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-RELDIR=lib\asn1
-
-intcflags=-I$(SRCDIR) -I$(OBJ)
-
-!include ../../windows/NTMakefile.w32
-
-gen_files_krb5 = $(OBJ)\asn1_krb5_asn1.x
-
-gen_files_cms = $(OBJ)\asn1_cms_asn1.x
-
-gen_files_rfc2459 = $(OBJ)\asn1_rfc2459_asn1.x
-
-gen_files_pkinit = $(OBJ)\asn1_pkinit_asn1.x
-
-gen_files_pkcs12 = $(OBJ)\asn1_pkcs12_asn1.x
-
-gen_files_pkcs8 = $(OBJ)\asn1_pkcs8_asn1.x
-
-gen_files_pkcs9 = $(OBJ)\asn1_pkcs9_asn1.x
-
-gen_files_test = $(OBJ)\asn1_test_asn1.x
-
-gen_files_digest = $(OBJ)\asn1_digest_asn1.x
-
-gen_files_kx509 = $(OBJ)\asn1_kx509_asn1.x
-
-ASN1_BINARIES = \
- $(LIBEXECDIR)\asn1_compile.exe
-
-$(BINDIR)\asn1_compile.exe: \
- $(OBJ)\asn1parse.obj \
- $(OBJ)\gen.obj \
- $(OBJ)\gen_copy.obj \
- $(OBJ)\gen_decode.obj \
- $(OBJ)\gen_encode.obj \
- $(OBJ)\gen_free.obj \
- $(OBJ)\gen_glue.obj \
- $(OBJ)\gen_length.obj \
- $(OBJ)\gen_seq.obj \
- $(OBJ)\gen_template.obj \
- $(OBJ)\hash.obj \
- $(OBJ)\lex.obj \
- $(OBJ)\main.obj \
- $(OBJ)\symbol.obj \
- $(OBJ)\asn1_compile-version.res
- $(EXECONLINK) $(LIBROKEN) $(LIBVERS)
- $(EXEPREP_NOHEIM)
-
-$(OBJ)\lex.c: lex.l $(OBJ)\asn1parse.h
- $(LEX) -o$@ lex.l
-
-$(OBJ)\lex.obj: $(OBJ)\lex.c
- $(C2OBJ) -DYY_NO_UNISTD_H
-
-$(OBJ)\asn1parse.c $(OBJ)\asn1parse.h: asn1parse.y
- $(YACC) -o $(OBJ)\asn1parse.c --defines=$(OBJ)\asn1parse.h $**
-
-$(OBJ)\asn1_err.c $(OBJ)\asn1_err.h: asn1_err.et
- cd $(OBJ)
- $(BINDIR)\compile_et.exe $(SRCDIR)\asn1_err.et
- cd $(SRCDIR)
-
-$(BINDIR)\asn1_print.exe: $(OBJ)\asn1_print.obj $(LIBHEIMDAL)
- $(EXECONLINK) $(LIBVERS) $(LIBROKEN) $(LIBCOMERR)
- $(EXEPREP)
-
-$(BINDIR)\asn1_gen.exe: $(OBJ)\asn1_gen.obj $(LIBHEIMDAL)
- $(EXECONLINK) $(LIBVERS) $(LIBROKEN)
- $(EXEPREP)
-
-LIBASN1_OBJS= \
- $(OBJ)\der.obj \
- $(OBJ)\der_get.obj \
- $(OBJ)\der_put.obj \
- $(OBJ)\der_free.obj \
- $(OBJ)\der_length.obj \
- $(OBJ)\der_copy.obj \
- $(OBJ)\der_cmp.obj \
- $(OBJ)\der_format.obj \
- $(OBJ)\extra.obj \
- $(OBJ)\timegm.obj \
- $(gen_files_rfc2459:.x=.obj) \
- $(gen_files_cms:.x=.obj) \
- $(gen_files_krb5:.x=.obj) \
- $(gen_files_pkinit:.x=.obj) \
- $(gen_files_pkcs8:.x=.obj) \
- $(gen_files_pkcs9:.x=.obj) \
- $(gen_files_pkcs12:.x=.obj) \
- $(gen_files_digest:.x=.obj) \
- $(gen_files_kx509:.x=.obj) \
- $(OBJ)\asn1_err.obj
-
-$(LIBASN1): $(LIBASN1_OBJS)
- $(LIBCON_C) -out:$@ @<<
-$(**: =
-)
-<<
-
-clean::
- -$(RM) $(LIBASN1)
-
-#
-# Generate list of exports
-#
-# This target is only used during development to generate a list of
-# symbols that are exported from all the object files in LIBASN1_OBJS.
-#
-exports-list.txt: $(LIBASN1_OBJS)
- $(PERL) ..\..\cf\w32-list-externs-from-objs.pl -q -u @<< > $@
-$(**: =
-)
-<<
-
-$(gen_files_krb5:.x=.c) : $$(@R).x
-
-$(gen_files_pkinit:.x=.c) : $$(@R).x
-
-$(gen_files_pkcs8:.x=.c) : $$(@R).x
-
-$(gen_files_pkcs9:.x=.c) : $$(@R).x
-
-$(gen_files_pkcs12:.x=.c) : $$(@R).x
-
-$(gen_files_digest:.x=.c) : $$(@R).x
-
-$(gen_files_kx509:.x=.c) : $$(@R).x
-
-$(gen_files_rfc2459:.x=.c) : $$(@R).x
-
-$(gen_files_cms:.x=.c) : $$(@R).x
-
-$(gen_files_test:.x=.c) : $$(@R).x
-
-$(gen_files_krb5) $(OBJ)\krb5_asn1.hx: $(BINDIR)\asn1_compile.exe krb5.asn1 krb5.opt
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe \
- --one-code-file \
- --option-file=$(SRCDIR)\krb5.opt \
- $(SRCDIR)\krb5.asn1 krb5_asn1 \
- || ($(RM) $(OBJ)\krb5_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_pkinit) $(OBJ)\pkinit_asn1.hx: $(BINDIR)\asn1_compile.exe pkinit.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\pkinit.asn1 pkinit_asn1 \
- || ($(RM) $(OBJ)\pkinit_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_pkcs8) $(OBJ)\pkcs8_asn1.hx: $(BINDIR)\asn1_compile.exe pkcs8.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\pkcs8.asn1 pkcs8_asn1 \
- || ($(RM) $(OBJ)\pkcs8_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_pkcs9) $(OBJ)\pkcs9_asn1.hx: $(BINDIR)\asn1_compile.exe pkcs9.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\pkcs9.asn1 pkcs9_asn1 \
- || ($(RM) $(OBJ)\pkcs9_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_pkcs12) $(OBJ)\pkcs12_asn1.hx: $(BINDIR)\asn1_compile.exe pkcs12.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\pkcs12.asn1 pkcs12_asn1 \
- || ($(RM) $(OBJ)\pkcs12_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_digest) $(OBJ)\digest_asn1.hx: $(BINDIR)\asn1_compile.exe digest.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\digest.asn1 digest_asn1 \
- || ($(RM) $(OBJ)\digest_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_kx509) $(OBJ)\kx509_asn1.hx: $(BINDIR)\asn1_compile.exe kx509.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\kx509.asn1 kx509_asn1 \
- || ($(RM) $(OBJ)\kx509_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_rfc2459) $(OBJ)\rfc2459_asn1.hx: $(BINDIR)\asn1_compile.exe rfc2459.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe \
- --one-code-file \
- --preserve-binary=TBSCertificate \
- --preserve-binary=TBSCRLCertList \
- --preserve-binary=Name \
- --sequence=GeneralNames \
- --sequence=Extensions \
- --sequence=CRLDistributionPoints \
- $(SRCDIR)\rfc2459.asn1 rfc2459_asn1 \
- || ($(RM) $(OBJ)\rfc2459_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_cms) $(OBJ)\cms_asn1.hx: $(BINDIR)\asn1_compile.exe cms.asn1 cms.opt
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe \
- --one-code-file --option-file=$(SRCDIR)\cms.opt \
- $(SRCDIR)\cms.asn1 cms_asn1 \
- || ($(RM) $(OBJ)\cms_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-$(gen_files_test) $(OBJ)\test_asn1.hx: $(BINDIR)\asn1_compile.exe test.asn1
- cd $(OBJ)
- $(BINDIR)\asn1_compile.exe \
- --one-code-file --sequence=TESTSeqOf \
- $(SRCDIR)\test.asn1 test_asn1 \
- || ($(RM) $(OBJ)\test_asn1.h ; exit /b 1)
- cd $(SRCDIR)
-
-INCFILES= \
- $(INCDIR)\der.h \
- $(INCDIR)\heim_asn1.h \
- $(INCDIR)\der-protos.h \
- $(INCDIR)\der-private.h \
- $(INCDIR)\asn1-common.h \
- $(INCDIR)\asn1-template.h \
- $(OBJ)\asn1_err.h
-
-$(INCDIR)\der-protos.h: $(OBJ)\der-protos.h
-
-GENINCFILES= \
- $(INCDIR)\asn1_err.h \
- $(INCDIR)\cms_asn1.h \
- $(INCDIR)\digest_asn1.h \
- $(INCDIR)\krb5_asn1.h \
- $(INCDIR)\kx509_asn1.h \
- $(INCDIR)\pkcs12_asn1.h \
- $(INCDIR)\pkcs8_asn1.h \
- $(INCDIR)\pkcs9_asn1.h \
- $(INCDIR)\pkinit_asn1.h \
- $(INCDIR)\rfc2459_asn1.h \
- $(OBJ)\krb5_asn1-priv.h \
- $(OBJ)\pkinit_asn1-priv.h \
- $(OBJ)\cms_asn1-priv.h \
- $(OBJ)\rfc2459_asn1-priv.h \
- $(OBJ)\pkcs8_asn1-priv.h \
- $(OBJ)\pkcs9_asn1-priv.h \
- $(OBJ)\pkcs12_asn1-priv.h \
- $(OBJ)\digest_asn1-priv.h \
- $(OBJ)\kx509_asn1-priv.h \
- $(OBJ)\test_asn1.h \
- $(OBJ)\test_asn1-priv.h
-
-libasn1_SOURCES= \
- der_locl.h \
- der.c \
- der.h \
- der_get.c \
- der_put.c \
- der_free.c \
- der_length.c \
- der_copy.c \
- der_cmp.c \
- der_format.c \
- heim_asn1.h \
- extra.c \
- timegm.c
-
-$(OBJ)\der-protos.h: $(libasn1_SOURCES)
- $(PERL) ..\..\cf\make-proto.pl -q -P remove -o $(OBJ)\der-protos.h $(libasn1_SOURCES) || $(RM) $(OBJ)\der-protos.h
-
-$(OBJ)\der-private.h: $(libasn1_SOURCES)
- $(PERL) ..\..\cf\make-proto.pl -q -P remove -p $(OBJ)\der-private.h $(libasn1_SOURCES) || $(RM) $(OBJ)\der-private.h
-
-clean::
- -$(RM) $(INCDIR)\der-protos.h
-
-all:: $(INCFILES) $(GENINCFILES) $(ASN1_BINARIES) $(LIBASN1)
-
-all-tools:: $(LIBEXECDIR)\asn1_print.exe $(BINDIR)\asn1_gen.exe
-
-clean::
- -$(RM) $(INCFILES)
- -$(RM) $(GENINCFILES)
- -$(RM) $(ASN1_BINARIES:.exe=.*)
- -$(RM) $(LIBASN1)
- -$(RM) $(LIBEXECDIR)\asn1_print.*
- -$(RM) $(LIBEXECDIR)\asn1_gen.*
-
-TEST_BINARIES=\
- $(OBJ)\check-der.exe \
- $(OBJ)\check-gen.exe \
- $(OBJ)\check-timegm.exe \
- $(OBJ)\check-ber.exe \
- $(OBJ)\check-template.exe \
-
-test-binaries: $(TEST_BINARIES)
-
-test-run:
- cd $(OBJ)
- check-der.exe
- check-gen.exe
- check-timegm.exe
- check-ber.exe
- check-template.exe
- cd $(SRC)
-
-test:: test-binaries test-run
-
-clean::
- -$(RM) $(TEST_BINARIES:.exe=*)
-
-$(OBJ)\check-ber.exe: $(OBJ)\check-ber.obj \
- $(LIBHEIMDAL) $(LIBROKEN)
- $(EXECONLINK)
- $(EXEPREP_NODIST)
-
-$(OBJ)\check-der.exe: $(OBJ)\check-der.obj $(OBJ)\check-common.obj \
- $(LIBHEIMDAL) $(LIBROKEN)
- $(EXECONLINK)
- $(EXEPREP_NODIST)
-
-$(OBJ)\check-gen.exe: $(OBJ)\check-gen.obj $(OBJ)\check-common.obj \
- $(LIBHEIMDAL) $(LIBROKEN) $(gen_files_test:.x=.obj)
- $(EXECONLINK)
- $(EXEPREP_NODIST)
-
-$(OBJ)\check-timegm.exe: $(OBJ)\check-timegm.obj \
- $(LIBHEIMDAL) $(LIBROKEN)
- $(EXECONLINK)
- $(EXEPREP_NODIST)
-
-$(OBJ)\check-template.exe: $(OBJ)\check-template.obj $(OBJ)\check-common.obj \
- $(LIBHEIMDAL) $(LIBROKEN) $(gen_files_test:.x=.obj)
- $(EXECONLINK)
- $(EXEPREP_NODIST)
Deleted: trunk/crypto/heimdal/lib/asn1/asn1_compile-version.rc
===================================================================
--- trunk/crypto/heimdal/lib/asn1/asn1_compile-version.rc 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/asn1_compile-version.rc 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,36 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2010, Secure Endpoints Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * - Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * - Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **********************************************************************/
-
-#define RC_FILE_TYPE VFT_APP
-#define RC_FILE_DESC_0409 "ASN.1 Compiler"
-#define RC_FILE_ORIG_0409 "asn1_compile.exe"
-
-#include "../../windows/version.rc"
Deleted: trunk/crypto/heimdal/lib/asn1/check-ber.c
===================================================================
--- trunk/crypto/heimdal/lib/asn1/check-ber.c 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/check-ber.c 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,279 +0,0 @@
-/*
- * Copyright (c) 2008 Kungliga Tekniska Högskolan
- * (Royal Institute of Technology, Stockholm, Sweden).
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * 3. Neither the name of the Institute nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <der_locl.h>
-#include <rfc2459_asn1.h>
-#include <cms_asn1.h>
-
-
-RCSID("$Id$");
-
-static const unsigned char *contentdata = (unsigned char *)
- "\x30\x80\x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x07\x02\xa0\x80\x30"
- "\x80\x02\x01\x03\x31\x0b\x30\x09\x06\x05\x2b\x0e\x03\x02\x1a\x05"
- "\x00\x30\x80\x06\x07\x2b\x06\x01\x05\x02\x03\x01\xa0\x80\x24\x80"
- "\x04\x40\x30\x3e\xa0\x3c\x30\x3a\xa0\x05\x02\x03\x0e\x03\x86\xa1"
- "\x11\x18\x0f\x32\x30\x30\x38\x31\x32\x31\x33\x31\x39\x34\x35\x34"
- "\x32\x5a\xa2\x06\x02\x04\xba\xbd\x97\x8a\xa3\x16\x04\x14\x41\x28"
- "\x79\xa8\xd0\xe4\xb1\x0f\xb1\xfc\xa6\x0b\x4d\x2b\x85\x3d\xd9\x17"
- "\x3f\xdc\x00\x00\x00\x00\x00\x00\xa0\x82\x0b\x6c\x30\x82\x05\x57"
- "\x30\x82\x04\x3f\xa0\x03\x02\x01\x02\x02\x03\x47\x3d\x05\x30\x0d"
- "\x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x01\x05\x05\x00\x30\x81\x86"
- "\x31\x0b\x30\x09\x06\x03\x55\x04\x06\x13\x02\x55\x53\x31\x1d\x30"
- "\x1b\x06\x03\x55\x04\x0a\x13\x14\x41\x70\x70\x6c\x65\x20\x43\x6f"
- "\x6d\x70\x75\x74\x65\x72\x2c\x20\x49\x6e\x63\x2e\x31\x2d\x30\x2b"
- "\x06\x03\x55\x04\x0b\x13\x24\x41\x70\x70\x6c\x65\x20\x43\x6f\x6d"
- "\x70\x75\x74\x65\x72\x20\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74"
- "\x65\x20\x41\x75\x74\x68\x6f\x72\x69\x74\x79\x31\x29\x30\x27\x06"
- "\x03\x55\x04\x03\x13\x20\x41\x70\x70\x6c\x65\x20\x2e\x4d\x61\x63"
- "\x20\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x41\x75\x74"
- "\x68\x6f\x72\x69\x74\x79\x30\x1e\x17\x0d\x30\x38\x31\x30\x30\x31"
- "\x30\x38\x30\x36\x33\x33\x5a\x17\x0d\x30\x39\x31\x30\x30\x32\x30"
- "\x38\x30\x36\x33\x33\x5a\x30\x71\x31\x0b\x30\x09\x06\x03\x55\x04"
- "\x06\x13\x02\x55\x53\x31\x13\x30\x11\x06\x03\x55\x04\x0a\x13\x0a"
- "\x41\x70\x70\x6c\x65\x20\x49\x6e\x63\x2e\x31\x0f\x30\x0d\x06\x03"
- "\x55\x04\x0b\x13\x06\x6d\x65\x2e\x63\x6f\x6d\x31\x15\x30\x13\x06"
- "\x03\x55\x04\x03\x13\x0c\x62\x69\x74\x63\x6f\x6c\x6c\x65\x63\x74"
- "\x6f\x72\x31\x25\x30\x23\x06\x03\x55\x04\x0d\x13\x1c\x4d\x6f\x62"
- "\x69\x6c\x65\x4d\x65\x20\x53\x68\x61\x72\x69\x6e\x67\x20\x43\x65"
- "\x72\x74\x69\x66\x69\x63\x61\x74\x65\x30\x81\xa3\x30\x0d\x06\x09"
- "\x2a\x86\x48\x86\xf7\x0d\x01\x01\x01\x05\x00\x03\x81\x91\x00\x30"
- "\x81\x8d\x02\x81\x81\x00\xe1\x15\xd8\xfa\xe9\xc2\xb7\x2e\xf0\xd9"
- "\xbe\xdb\x0c\xd8\xcb\xf3\x88\x13\xd7\x22\xf8\x4d\xf4\xb6\x31\x17"
- "\xe5\x92\x42\xef\x15\xe4\x5f\x12\x58\x3d\x8d\x0b\xa4\x03\x76\xe0"
- "\xd0\xf2\x46\xb4\x4b\x14\x78\x23\x1c\x38\xb0\x99\xff\x36\x6f\x0e"
- "\x26\xdf\x76\xd0\x01\x03\x7a\xd9\xcd\x1c\x92\xa6\x10\x5e\xed\x8a"
- "\xb0\xfe\x9b\x8c\x96\xb0\x91\x9f\x97\xd0\xf4\x9c\x81\x8e\xbf\xb5"
- "\x41\x24\x81\xb0\x1b\xb3\x8c\xd3\x92\x5c\xfd\x2b\x04\x61\xc3\x21"
- "\x6c\xa9\xe4\xa0\xfe\xa5\x1c\x76\xfd\xda\x3b\x81\x7c\xa0\x5c\x2c"
- "\xf6\x8f\x6e\x74\x52\x35\x02\x07\x01\x00\x01\x00\x01\x00\x01\xa3"
- "\x82\x02\x60\x30\x82\x02\x5c\x30\x0c\x06\x03\x55\x1d\x13\x01\x01"
- "\xff\x04\x02\x30\x00\x30\x0e\x06\x03\x55\x1d\x0f\x01\x01\xff\x04"
- "\x04\x03\x02\x03\x88\x30\x28\x06\x03\x55\x1d\x25\x04\x21\x30\x1f"
- "\x06\x08\x2b\x06\x01\x05\x05\x07\x03\x02\x06\x0a\x2a\x86\x48\x86"
- "\xf7\x63\x64\x03\x02\x01\x06\x07\x2b\x06\x01\x05\x02\x03\x04\x30"
- "\x1d\x06\x03\x55\x1d\x0e\x04\x16\x04\x14\x11\xb3\x15\xb5\xab\x31"
- "\xbb\xa5\x48\xee\xd6\x33\xd2\x86\xc3\x0b\x2a\x4c\x5e\x94\x30\x1f"
- "\x06\x03\x55\x1d\x23\x04\x18\x30\x16\x80\x14\x7a\x7d\x90\xb1\x30"
- "\x59\x08\x92\x91\xf9\x53\xb9\x71\x1d\x35\x33\x67\x34\x8b\xd5\x30"
- "\x81\xa5\x06\x08\x2b\x06\x01\x05\x05\x07\x01\x01\x04\x81\x98\x30"
- "\x81\x95\x30\x27\x06\x08\x2b\x06\x01\x05\x05\x07\x30\x01\x86\x1b"
- "\x68\x74\x74\x70\x3a\x2f\x2f\x63\x65\x72\x74\x69\x6e\x66\x6f\x2e"
- "\x6d\x65\x2e\x63\x6f\x6d\x2f\x6f\x63\x73\x70\x30\x44\x06\x08\x2b"
- "\x06\x01\x05\x05\x07\x30\x02\x86\x38\x68\x74\x74\x70\x3a\x2f\x2f"
- "\x77\x77\x77\x2e\x61\x70\x70\x6c\x65\x2e\x63\x6f\x6d\x2f\x63\x65"
- "\x72\x74\x69\x66\x69\x63\x61\x74\x65\x61\x75\x74\x68\x6f\x72\x69"
- "\x74\x79\x2f\x63\x61\x73\x69\x67\x6e\x65\x72\x73\x2e\x68\x74\x6d"
- "\x6c\x30\x24\x06\x03\x55\x1d\x12\x86\x1d\x68\x74\x74\x70\x3a\x2f"
- "\x2f\x63\x65\x72\x74\x69\x6e\x66\x6f\x2e\x6d\x65\x2e\x63\x6f\x6d"
- "\x2f\x43\x41\x2e\x63\x65\x72\x30\x82\x01\x28\x06\x03\x55\x1d\x20"
- "\x04\x82\x01\x1f\x30\x82\x01\x1b\x30\x82\x01\x17\x06\x09\x2a\x86"
- "\x48\x86\xf7\x63\x64\x05\x02\x30\x82\x01\x08\x30\x40\x06\x08\x2b"
- "\x06\x01\x05\x05\x07\x02\x01\x16\x34\x68\x74\x74\x70\x3a\x2f\x2f"
- "\x77\x77\x77\x2e\x61\x70\x70\x6c\x65\x2e\x63\x6f\x6d\x2f\x63\x65"
- "\x72\x74\x69\x66\x69\x63\x61\x74\x65\x61\x75\x74\x68\x6f\x72\x69"
- "\x74\x79\x2f\x74\x65\x72\x6d\x73\x2e\x68\x74\x6d\x6c\x30\x81\xc3"
- "\x06\x08\x2b\x06\x01\x05\x05\x07\x02\x02\x30\x81\xb6\x1a\x81\xb3"
- "\x52\x65\x6c\x69\x61\x6e\x63\x65\x20\x6f\x6e\x20\x74\x68\x69\x73"
- "\x20\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x62\x79\x20"
- "\x61\x6e\x79\x20\x70\x61\x72\x74\x79\x20\x61\x73\x73\x75\x6d\x65"
- "\x73\x20\x61\x63\x63\x65\x70\x74\x61\x6e\x63\x65\x20\x6f\x66\x20"
- "\x74\x68\x65\x20\x74\x68\x65\x6e\x20\x61\x70\x70\x6c\x69\x63\x61"
- "\x62\x6c\x65\x20\x73\x74\x61\x6e\x64\x61\x72\x64\x20\x74\x65\x72"
- "\x6d\x73\x20\x61\x6e\x64\x20\x63\x6f\x6e\x64\x69\x74\x69\x6f\x6e"
- "\x73\x20\x6f\x66\x20\x75\x73\x65\x2c\x20\x63\x65\x72\x74\x69\x66"
- "\x69\x63\x61\x74\x65\x20\x70\x6f\x6c\x69\x63\x79\x20\x61\x6e\x64"
- "\x20\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x20\x70"
- "\x72\x61\x63\x74\x69\x63\x65\x20\x73\x74\x61\x74\x65\x6d\x65\x6e"
- "\x74\x73\x2e\x30\x0d\x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x01\x05"
- "\x05\x00\x03\x82\x01\x01\x00\x39\xb1\x81\xbe\x55\xf1\xb1\xe4\x16"
- "\x5d\x7c\x5b\x6a\xe8\xcf\xee\xaa\x87\x91\x81\xf2\x57\x0d\x32\x6c"
- "\xc6\x47\xdc\x71\x70\xfa\x7c\x47\x84\x7f\xa5\x69\x1b\x4c\x52\x98"
- "\x7f\xc8\x1f\x62\x06\x83\xae\x0a\xef\x55\x29\x35\xb3\xa0\x04\x88"
- "\xa6\x45\x0a\xd0\xd7\x4e\x5c\x63\x3e\xe7\xb2\x28\x85\xd3\x01\x56"
- "\x2b\x89\xb5\x60\x9a\xa5\x9d\x85\x0d\x76\x9e\xe1\x4a\x54\x8b\x6f"
- "\xad\xc4\xc2\x43\x2f\x18\xaa\x18\x1a\x64\x2f\x2e\xe3\xc9\xb8\xa8"
- "\xdd\xba\x53\xc4\x18\xcf\x4e\x30\xbf\x06\xa7\xdb\x12\x34\x24\x5c"
- "\x71\x60\x2a\xd2\x93\xef\x54\x83\x4e\x5d\xc5\x5f\x00\x8d\x02\x85"
- "\xe5\x17\x68\x46\xfa\xd4\x45\x96\x71\xf7\x93\x58\x4d\x83\x6b\x01"
- "\xcb\xdb\x7d\x61\x67\x69\xbe\xf1\x4c\x4b\xe2\x3e\xf6\x4e\x62\x77"
- "\x26\x86\xc4\x3b\x96\x38\x27\x0b\x02\x0d\x07\xc9\x95\x53\x6d\x03"
- "\xff\x61\xfb\x67\x7f\x8a\x2e\x2f\xc5\xff\x5a\xf9\x53\xd8\xb3\xae"
- "\xf1\x05\x27\x92\x79\x22\xd5\x55\x6e\xd6\xbf\xdb\x9d\xad\xbf\xbf"
- "\x7d\x15\xd8\x1c\x3d\x63\x86\xf1\xf1\x78\xfe\xfb\x62\x06\x8c\xf4"
- "\x0f\xa8\x91\xa8\x7c\xef\x51\x96\x09\x52\x68\xec\x09\xdd\xb9\x9a"
- "\x62\x49\xac\xbe\x20\x20\x9b\x30\x82\x06\x0d\x30\x82\x04\xf5\xa0"
- "\x03\x02\x01\x02\x02\x01\x0f\x30\x0d\x06\x09\x2a\x86\x48\x86\xf7"
- "\x0d\x01\x01\x05\x05\x00\x30\x81\x86\x31\x0b\x30\x09\x06\x03\x55"
- "\x04\x06\x13\x02\x55\x53\x31\x1d\x30\x1b\x06\x03\x55\x04\x0a\x13"
- "\x14\x41\x70\x70\x6c\x65\x20\x43\x6f\x6d\x70\x75\x74\x65\x72\x2c"
- "\x20\x49\x6e\x63\x2e\x31\x2d\x30\x2b\x06\x03\x55\x04\x0b\x13\x24"
- "\x41\x70\x70\x6c\x65\x20\x43\x6f\x6d\x70\x75\x74\x65\x72\x20\x43"
- "\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x41\x75\x74\x68\x6f"
- "\x72\x69\x74\x79\x31\x29\x30\x27\x06\x03\x55\x04\x03\x13\x20\x41"
- "\x70\x70\x6c\x65\x20\x52\x6f\x6f\x74\x20\x43\x65\x72\x74\x69\x66"
- "\x69\x63\x61\x74\x65\x20\x41\x75\x74\x68\x6f\x72\x69\x74\x79\x30"
- "\x1e\x17\x0d\x30\x35\x30\x32\x31\x30\x32\x30\x33\x38\x32\x37\x5a"
- "\x17\x0d\x31\x31\x31\x31\x31\x30\x32\x30\x33\x38\x32\x37\x5a\x30"
- "\x81\x86\x31\x0b\x30\x09\x06\x03\x55\x04\x06\x13\x02\x55\x53\x31"
- "\x1d\x30\x1b\x06\x03\x55\x04\x0a\x13\x14\x41\x70\x70\x6c\x65\x20"
- "\x43\x6f\x6d\x70\x75\x74\x65\x72\x2c\x20\x49\x6e\x63\x2e\x31\x2d"
- "\x30\x2b\x06\x03\x55\x04\x0b\x13\x24\x41\x70\x70\x6c\x65\x20\x43"
- "\x6f\x6d\x70\x75\x74\x65\x72\x20\x43\x65\x72\x74\x69\x66\x69\x63"
- "\x61\x74\x65\x20\x41\x75\x74\x68\x6f\x72\x69\x74\x79\x31\x29\x30"
- "\x27\x06\x03\x55\x04\x03\x13\x20\x41\x70\x70\x6c\x65\x20\x2e\x4d"
- "\x61\x63\x20\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x41"
- "\x75\x74\x68\x6f\x72\x69\x74\x79\x30\x82\x01\x22\x30\x0d\x06\x09"
- "\x2a\x86\x48\x86\xf7\x0d\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x00"
- "\x30\x82\x01\x0a\x02\x82\x01\x01\x00\xbb\x73\x84\xb0\x48\x36\x64"
- "\xf8\x1f\xa2\x57\x89\xb6\xe2\x71\x3c\x36\x5e\x56\xeb\xdb\x96\x16"
- "\x23\x1c\x81\xd0\x14\x2d\xd6\xf0\x4b\x22\x9b\x3f\xb7\x7a\x2c\xa2"
- "\xf0\x69\x48\x33\xb7\x9e\xef\x68\xe7\xbc\x30\x07\x73\xbc\x61\xb0"
- "\x01\x51\xef\x44\xdf\xdb\x45\x04\x96\x80\x2c\x7b\xe8\x93\x1f\x89"
- "\x92\x60\x21\xcd\x34\x55\x00\x66\x31\x03\x01\x01\x44\x25\x94\x0b"
- "\x42\x78\xca\x5a\x05\x1e\x77\x73\x24\x75\x6a\xc8\x45\x9c\xef\x2b"
- "\x2a\x51\x29\x8f\xeb\x7e\x62\xd7\xfa\xcd\x32\xfd\x31\xe8\xcd\xde"
- "\xab\x0d\xb5\xb4\x56\xc2\x68\x51\x09\x0c\x29\xe5\x38\x7b\x50\x68"
- "\xbe\x00\x87\x8c\x56\xef\xd3\x1b\xa3\xc9\x6e\xa6\x74\x43\xeb\x83"
- "\xd4\x63\x5f\x13\x79\x1e\xf8\x85\xbf\xbf\x73\x69\x36\xc5\x56\x12"
- "\x6c\xe4\xee\xaf\x86\xab\x65\xb6\x04\xf0\x5a\x63\x2d\xa3\x31\x6c"
- "\xe8\x48\x10\x65\xc0\x74\x45\x0d\x97\x58\x90\x3d\x91\x83\x14\xf2"
- "\x6f\xba\xad\x2f\x6c\x41\x6e\x3c\xb7\x8f\x72\x4a\x1d\xf0\xb7\x1a"
- "\xc0\xf0\x72\x0b\x3d\x9d\x7a\x8b\x4d\xb0\x33\xb7\x5f\x83\xef\x08"
- "\x5b\x5f\x35\x35\x3b\x52\xdf\x30\xb1\x00\x6c\xa6\x3a\x86\xc4\xf4"
- "\x7c\xe1\x79\x74\x5f\x0b\x35\xb8\xe1\x02\x03\x01\x00\x01\xa3\x82"
- "\x02\x82\x30\x82\x02\x7e\x30\x0e\x06\x03\x55\x1d\x0f\x01\x01\xff"
- "\x04\x04\x03\x02\x01\x86\x30\x0f\x06\x03\x55\x1d\x13\x01\x01\xff"
- "\x04\x05\x30\x03\x01\x01\xff\x30\x1d\x06\x03\x55\x1d\x0e\x04\x16"
- "\x04\x14\x7a\x7d\x90\xb1\x30\x59\x08\x92\x91\xf9\x53\xb9\x71\x1d"
- "\x35\x33\x67\x34\x8b\xd5\x30\x1f\x06\x03\x55\x1d\x23\x04\x18\x30"
- "\x16\x80\x14\x2b\xd0\x69\x47\x94\x76\x09\xfe\xf4\x6b\x8d\x2e\x40"
- "\xa6\xf7\x47\x4d\x7f\x08\x5e\x30\x82\x01\x28\x06\x03\x55\x1d\x20"
- "\x04\x82\x01\x1f\x30\x82\x01\x1b\x30\x82\x01\x17\x06\x09\x2a\x86"
- "\x48\x86\xf7\x63\x64\x05\x02\x30\x82\x01\x08\x30\x40\x06\x08\x2b"
- "\x06\x01\x05\x05\x07\x02\x01\x16\x34\x68\x74\x74\x70\x3a\x2f\x2f"
- "\x77\x77\x77\x2e\x61\x70\x70\x6c\x65\x2e\x63\x6f\x6d\x2f\x63\x65"
- "\x72\x74\x69\x66\x69\x63\x61\x74\x65\x61\x75\x74\x68\x6f\x72\x69"
- "\x74\x79\x2f\x74\x65\x72\x6d\x73\x2e\x68\x74\x6d\x6c\x30\x81\xc3"
- "\x06\x08\x2b\x06\x01\x05\x05\x07\x02\x02\x30\x81\xb6\x1a\x81\xb3"
- "\x52\x65\x6c\x69\x61\x6e\x63\x65\x20\x6f\x6e\x20\x74\x68\x69\x73"
- "\x20\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x62\x79\x20"
- "\x61\x6e\x79\x20\x70\x61\x72\x74\x79\x20\x61\x73\x73\x75\x6d\x65"
- "\x73\x20\x61\x63\x63\x65\x70\x74\x61\x6e\x63\x65\x20\x6f\x66\x20"
- "\x74\x68\x65\x20\x74\x68\x65\x6e\x20\x61\x70\x70\x6c\x69\x63\x61"
- "\x62\x6c\x65\x20\x73\x74\x61\x6e\x64\x61\x72\x64\x20\x74\x65\x72"
- "\x6d\x73\x20\x61\x6e\x64\x20\x63\x6f\x6e\x64\x69\x74\x69\x6f\x6e"
- "\x73\x20\x6f\x66\x20\x75\x73\x65\x2c\x20\x63\x65\x72\x74\x69\x66"
- "\x69\x63\x61\x74\x65\x20\x70\x6f\x6c\x69\x63\x79\x20\x61\x6e\x64"
- "\x20\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x20\x70"
- "\x72\x61\x63\x74\x69\x63\x65\x20\x73\x74\x61\x74\x65\x6d\x65\x6e"
- "\x74\x73\x2e\x30\x43\x06\x03\x55\x1d\x1f\x04\x3c\x30\x3a\x30\x38"
- "\xa0\x36\xa0\x34\x86\x32\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77"
- "\x2e\x61\x70\x70\x6c\x65\x2e\x63\x6f\x6d\x2f\x63\x65\x72\x74\x69"
- "\x66\x69\x63\x61\x74\x65\x61\x75\x74\x68\x6f\x72\x69\x74\x79\x2f"
- "\x72\x6f\x6f\x74\x2e\x63\x72\x6c\x30\x81\xa9\x06\x08\x2b\x06\x01"
- "\x05\x05\x07\x01\x01\x04\x81\x9c\x30\x81\x99\x30\x44\x06\x08\x2b"
- "\x06\x01\x05\x05\x07\x30\x02\x86\x38\x68\x74\x74\x70\x3a\x2f\x2f"
- "\x77\x77\x77\x2e\x61\x70\x70\x6c\x65\x2e\x63\x6f\x6d\x2f\x63\x65"
- "\x72\x74\x69\x66\x69\x63\x61\x74\x65\x61\x75\x74\x68\x6f\x72\x69"
- "\x74\x79\x2f\x63\x61\x73\x69\x67\x6e\x65\x72\x73\x2e\x68\x74\x6d"
- "\x6c\x30\x51\x06\x03\x55\x1d\x12\x86\x4a\x68\x74\x74\x70\x3a\x2f"
- "\x2f\x77\x77\x77\x2e\x61\x70\x70\x6c\x65\x2e\x63\x6f\x6d\x2f\x63"
- "\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x61\x75\x74\x68\x6f\x72"
- "\x69\x74\x79\x2f\x41\x70\x70\x6c\x65\x43\x6f\x6d\x70\x75\x74\x65"
- "\x72\x52\x6f\x6f\x74\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65"
- "\x2e\x63\x65\x72\x30\x0d\x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x01"
- "\x05\x05\x00\x03\x82\x01\x01\x00\x16\x06\xe5\x56\x65\x44\x7d\xd0"
- "\xaa\x99\x29\xe5\xc6\x97\x0b\x02\x43\x25\x88\x8c\x42\xba\xfb\xd6"
- "\x5b\xb7\x20\x10\x69\x04\x4e\x91\x81\x08\xec\xf5\x23\x1f\xd2\x6d"
- "\x3f\x35\xae\xdb\xff\xb8\xc9\x2b\x4b\x28\x73\xc4\x26\x03\xe1\x92"
- "\x5e\xb2\x84\x0d\xa7\x13\xc6\x34\x54\xf1\x49\x1f\xa9\x47\x88\xb1"
- "\x40\x9b\xd3\x61\x93\x5b\xcf\xc7\x53\xe7\x9f\x54\x7b\x30\xc6\xb8"
- "\x3a\x89\x6f\x06\x09\x45\xa1\x94\x98\xbe\x8b\xea\x25\x7d\x91\x89"
- "\xf9\x27\x62\xb9\x5f\x2d\xea\xa9\xe7\x96\x5c\xbe\xe5\x84\x6d\xe8"
- "\x50\x27\xb4\xb1\xea\x9f\xf7\x92\x0d\x54\x86\xf0\x37\x31\x47\x0d"
- "\x54\xde\x91\xe8\x78\xe8\x61\x27\x7c\xc3\xea\xd0\xfc\x21\xa1\x08"
- "\xc8\xe5\x01\x0e\x15\xf5\x61\x60\xce\xff\xbd\x44\xd6\x8a\x1b\x67"
- "\xf8\x1f\x82\xe2\xa6\xb3\xfc\x3a\xc7\x30\xae\x93\x89\x29\x2e\x81"
- "\x43\x0c\x9b\xd5\x18\xa6\x74\x66\x7d\x1c\x79\xe6\x22\xef\xba\xf8"
- "\x23\xb3\xd3\x50\x76\x20\xde\x7a\x93\x91\x40\xcd\x16\xad\x82\x6a"
- "\xe6\xe7\x25\xf5\xb3\xbb\x36\x61\x38\x8f\xaf\x36\x5f\x4b\xae\xc1"
- "\xc6\x89\x99\xb1\xb1\xd9\xf1\xa3\x51\x50\xa1\x00\x3d\xdd\x16\x89"
- "\xcf\x35\x05\x62\xa0\x8b\x48\x0a\x31\x82\x01\x35\x30\x82\x01\x31"
- "\x02\x01\x01\x30\x81\x8e\x30\x81\x86\x31\x0b\x30\x09\x06\x03\x55"
- "\x04\x06\x13\x02\x55\x53\x31\x1d\x30\x1b\x06\x03\x55\x04\x0a\x13"
- "\x14\x41\x70\x70\x6c\x65\x20\x43\x6f\x6d\x70\x75\x74\x65\x72\x2c"
- "\x20\x49\x6e\x63\x2e\x31\x2d\x30\x2b\x06\x03\x55\x04\x0b\x13\x24"
- "\x41\x70\x70\x6c\x65\x20\x43\x6f\x6d\x70\x75\x74\x65\x72\x20\x43"
- "\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x41\x75\x74\x68\x6f"
- "\x72\x69\x74\x79\x31\x29\x30\x27\x06\x03\x55\x04\x03\x13\x20\x41"
- "\x70\x70\x6c\x65\x20\x2e\x4d\x61\x63\x20\x43\x65\x72\x74\x69\x66"
- "\x69\x63\x61\x74\x65\x20\x41\x75\x74\x68\x6f\x72\x69\x74\x79\x02"
- "\x03\x47\x3d\x05\x30\x09\x06\x05\x2b\x0e\x03\x02\x1a\x05\x00\x30"
- "\x0d\x06\x09\x2a\x86\x48\x86\xf7\x0d\x01\x01\x01\x05\x00\x04\x81"
- "\x80\x6d\xba\xa5\x44\x89\x98\x2d\x5e\xc4\xf6\xc0\x1e\x36\x70\x63"
- "\x43\xf6\x61\x3c\x0b\x43\x32\x50\x54\x95\x1e\x51\x41\x17\xd2\x7f"
- "\x47\x00\x21\x92\x61\xbf\x42\x63\xa4\xc8\x3a\x7f\x8d\x36\xea\xf1"
- "\x2d\x9f\x0c\x30\xbc\xe1\x5e\x16\xea\xcc\x01\xdf\xbd\x6b\xc8\xc3"
- "\xad\x12\x0e\x6a\x4d\xd5\xad\x15\x41\xcd\xde\xb9\xf9\xf5\xf2\xdc"
- "\x65\xaf\x61\x28\x68\x40\x52\x59\xf8\xb8\xa6\xec\xce\xed\x5e\x16"
- "\x7b\xbd\x72\x5e\x6a\x6e\x8b\x29\xb2\x97\x22\xe9\x99\xa3\xd6\xa9"
- "\x0e\xb3\x5e\xd3\x18\x24\x06\x20\x78\xc8\xa7\xa8\xe7\x76\x3a\x8a"
- "\x19\x00\x00\x00\x00\x00\x00";
-
-static size_t contentlen = 3367;
-
-
-static int
-test_ber(void)
-{
- ContentInfo ci;
- size_t size;
- int ret;
-
- ret = decode_ContentInfo(contentdata, contentlen, &ci, &size);
- if (ret)
- return 1;
-
- return 0;
-}
-
-int
-main(int argc, char **argv)
-{
- int ret = 0;
-
- ret += test_ber();
-
- return ret;
-}
Deleted: trunk/crypto/heimdal/lib/asn1/check-template.c
===================================================================
--- trunk/crypto/heimdal/lib/asn1/check-template.c 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/check-template.c 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,255 +0,0 @@
-/*
- * Copyright (c) 1999 - 2005 Kungliga Tekniska Högskolan
- * (Royal Institute of Technology, Stockholm, Sweden).
- * All rights reserved.
- *
- * Portions Copyright (c) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * 3. Neither the name of the Institute nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <config.h>
-
-#include <stdio.h>
-#include <string.h>
-#include <err.h>
-#include <roken.h>
-
-#include <asn1-common.h>
-#include <asn1_err.h>
-#include <der.h>
-#include <test_asn1.h>
-
-#include "check-common.h"
-
-static int
-cmp_dummy (void *a, void *b)
-{
- return 0;
-}
-
-static int
-test_seqofseq(void)
-{
- struct test_case tests[] = {
- { NULL, 2,
- "\x30\x00",
- "seqofseq 0" },
- { NULL, 9,
- "\x30\x07\x30\x05\xa0\x03\x02\x01\x00",
- "seqofseq 1" },
- { NULL, 16,
- "\x30\x0e\x30\x05\xa0\x03\x02\x01\x00\x30\x05\xa0\x03\x02\x01\x01",
- "seqofseq 2" }
- };
-
- int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
- TESTSeqOfSeq c0, c1, c2;
- struct TESTSeqOfSeq_val i[2];
-
- i[0].zero = 0;
- i[1].zero = 1;
-
- c0.len = 0;
- c0.val = NULL;
- tests[0].val = &c0;
-
- c1.len = 1;
- c1.val = i;
- tests[1].val = &c1;
-
- c2.len = 2;
- c2.val = i;
- tests[2].val = &c2;
-
- ret += generic_test (tests, ntests, sizeof(TESTSeqOfSeq),
- (generic_encode)encode_TESTSeqOfSeq,
- (generic_length)length_TESTSeqOfSeq,
- (generic_decode)decode_TESTSeqOfSeq,
- (generic_free)free_TESTSeqOfSeq,
- cmp_dummy,
- NULL);
- return ret;
-}
-
-static int
-test_seqofseq2(void)
-{
- struct test_case tests[] = {
- { NULL, 2,
- "\x30\x00",
- "seqofseq2 0" },
- { NULL, 11,
- "\x30\x09\x30\x07\xa0\x05\x1b\x03\x65\x74\x74",
- "seqofseq2 1" },
- { NULL, 21,
- "\x30\x13\x30\x07\xa0\x05\x1b\x03\x65\x74\x74\x30\x08\xa0"
- "\x06\x1b\x04\x74\x76\x61\x61",
- "seqofseq2 2" }
- };
-
- int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
- TESTSeqOfSeq2 c0, c1, c2;
- struct TESTSeqOfSeq2_val i[2];
-
- i[0].string = "ett";
- i[1].string = "tvaa";
-
- c0.len = 0;
- c0.val = NULL;
- tests[0].val = &c0;
-
- c1.len = 1;
- c1.val = i;
- tests[1].val = &c1;
-
- c2.len = 2;
- c2.val = i;
- tests[2].val = &c2;
-
- ret += generic_test (tests, ntests, sizeof(TESTSeqOfSeq2),
- (generic_encode)encode_TESTSeqOfSeq2,
- (generic_length)length_TESTSeqOfSeq2,
- (generic_decode)decode_TESTSeqOfSeq2,
- (generic_free)free_TESTSeqOfSeq2,
- cmp_dummy,
- NULL);
- return ret;
-}
-
-static int
-test_seqof2(void)
-{
- struct test_case tests[] = {
- { NULL, 4,
- "\x30\x02\x30\x00",
- "seqof2 1" },
- { NULL, 9,
- "\x30\x07\x30\x05\x1b\x03\x66\x6f\x6f",
- "seqof2 2" },
- { NULL, 14,
- "\x30\x0c\x30\x0a\x1b\x03\x66\x6f\x6f\x1b\x03\x62\x61\x72",
- "seqof2 3" }
- };
-
- int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
- TESTSeqOf2 c0, c1, c2;
- heim_general_string i[2];
-
- i[0] = "foo";
- i[1] = "bar";
-
- c0.strings.val = NULL;
- c0.strings.len = 0;
- tests[0].val = &c0;
-
- c1.strings.len = 1;
- c1.strings.val = i;
- tests[1].val = &c1;
-
- c2.strings.len = 2;
- c2.strings.val = i;
- tests[2].val = &c2;
-
- ret += generic_test (tests, ntests, sizeof(TESTSeqOf2),
- (generic_encode)encode_TESTSeqOf2,
- (generic_length)length_TESTSeqOf2,
- (generic_decode)decode_TESTSeqOf2,
- (generic_free)free_TESTSeqOf2,
- cmp_dummy,
- NULL);
- return ret;
-}
-
-static int
-test_seqof3(void)
-{
- struct test_case tests[] = {
- { NULL, 2,
- "\x30\x00",
- "seqof3 0" },
- { NULL, 4,
- "\x30\x02\x30\x00",
- "seqof3 1" },
- { NULL, 9,
- "\x30\x07\x30\x05\x1b\x03\x66\x6f\x6f",
- "seqof3 2" },
- { NULL, 14,
- "\x30\x0c\x30\x0a\x1b\x03\x66\x6f\x6f\x1b\x03\x62\x61\x72",
- "seqof3 3" }
- };
-
- int ret = 0, ntests = sizeof(tests) / sizeof(*tests);
- TESTSeqOf3 c0, c1, c2, c3;
- struct TESTSeqOf3_strings s1, s2, s3;
- heim_general_string i[2];
-
- i[0] = "foo";
- i[1] = "bar";
-
- c0.strings = NULL;
- tests[0].val = &c0;
-
- s1.val = NULL;
- s1.len = 0;
- c1.strings = &s1;
- tests[1].val = &c1;
-
- s2.len = 1;
- s2.val = i;
- c2.strings = &s2;
- tests[2].val = &c2;
-
- s3.len = 2;
- s3.val = i;
- c3.strings = &s3;
- tests[3].val = &c3;
-
- ret += generic_test (tests, ntests, sizeof(TESTSeqOf3),
- (generic_encode)encode_TESTSeqOf3,
- (generic_length)length_TESTSeqOf3,
- (generic_decode)decode_TESTSeqOf3,
- (generic_free)free_TESTSeqOf3,
- cmp_dummy,
- NULL);
- return ret;
-}
-
-
-int
-main(int argc, char **argv)
-{
- int ret = 0;
-
- ret += test_seqofseq();
- ret += test_seqofseq2();
- ret += test_seqof2();
- ret += test_seqof3();
-
- return ret;
-}
Deleted: trunk/crypto/heimdal/lib/asn1/libasn1-exports.def
===================================================================
--- trunk/crypto/heimdal/lib/asn1/libasn1-exports.def 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/libasn1-exports.def 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,1578 +0,0 @@
-EXPORTS
- APOptions2int
- DigestTypes2int
- DistributionPointReasonFlags2int
- FastOptions2int
- KDCOptions2int
- KeyUsage2int
- SAMFlags2int
- TicketFlags2int
- _der_timegm
- _der_gmtime
- _heim_der_set_sort
- _heim_fix_dce
- _heim_len_int
- _heim_len_unsigned
- _heim_time2generalizedtime
- add_AuthorizationData
- add_CRLDistributionPoints
- add_DigestAlgorithmIdentifiers
- add_ETYPE_INFO
- add_ETYPE_INFO2
- add_Extensions
- add_GeneralNames
- add_METHOD_DATA
- add_Principals
- asn1_APOptions_units
- asn1_DigestTypes_units
- asn1_DistributionPointReasonFlags_units
- asn1_FastOptions_units
- asn1_KDCOptions_units
- asn1_KeyUsage_units
- asn1_SAMFlags_units
- asn1_TicketFlags_units
- asn1_oid_id_Userid DATA
- asn1_oid_id_aes_128_cbc DATA
- asn1_oid_id_aes_192_cbc DATA
- asn1_oid_id_aes_256_cbc DATA
- asn1_oid_id_at_commonName DATA
- asn1_oid_id_at_countryName DATA
- asn1_oid_id_at_generationQualifier DATA
- asn1_oid_id_at_givenName DATA
- asn1_oid_id_at_initials DATA
- asn1_oid_id_at_localityName DATA
- asn1_oid_id_at_name DATA
- asn1_oid_id_at_organizationName DATA
- asn1_oid_id_at_organizationalUnitName DATA
- asn1_oid_id_at_pseudonym DATA
- asn1_oid_id_at_serialNumber DATA
- asn1_oid_id_at_stateOrProvinceName DATA
- asn1_oid_id_at_streetAddress DATA
- asn1_oid_id_at_surname DATA
- asn1_oid_id_dhpublicnumber DATA
- asn1_oid_id_domainComponent DATA
- asn1_oid_id_dsa DATA
- asn1_oid_id_dsa_with_sha1 DATA
- asn1_oid_id_ecDH DATA
- asn1_oid_id_ecMQV DATA
- asn1_oid_id_ecPublicKey DATA
- asn1_oid_id_ec_group_secp160r1 DATA
- asn1_oid_id_ec_group_secp160r2 DATA
- asn1_oid_id_ec_group_secp256r1 DATA
- asn1_oid_id_ecdsa_with_SHA1 DATA
- asn1_oid_id_ecdsa_with_SHA256 DATA
- asn1_oid_id_heim_rsa_pkcs1_x509 DATA
- asn1_oid_id_ms_cert_enroll_domaincontroller DATA
- asn1_oid_id_ms_client_authentication DATA
- asn1_oid_id_netscape DATA
- asn1_oid_id_netscape_cert_comment DATA
- asn1_oid_id_nistAlgorithm DATA
- asn1_oid_id_nist_aes_algs DATA
- asn1_oid_id_nist_sha_algs DATA
- asn1_oid_id_pbeWithSHAAnd128BitRC2_CBC DATA
- asn1_oid_id_pbeWithSHAAnd128BitRC4 DATA
- asn1_oid_id_pbeWithSHAAnd2_KeyTripleDES_CBC DATA
- asn1_oid_id_pbeWithSHAAnd3_KeyTripleDES_CBC DATA
- asn1_oid_id_pbeWithSHAAnd40BitRC4 DATA
- asn1_oid_id_pbewithSHAAnd40BitRC2_CBC DATA
- asn1_oid_id_pkauthdata DATA
- asn1_oid_id_pkcs12_bagtypes DATA
- asn1_oid_id_pkcs12_certBag DATA
- asn1_oid_id_pkcs12_crlBag DATA
- asn1_oid_id_pkcs12_keyBag DATA
- asn1_oid_id_pkcs12_pkcs8ShroudedKeyBag DATA
- asn1_oid_id_pkcs12_safeContentsBag DATA
- asn1_oid_id_pkcs12_secretBag DATA
- asn1_oid_id_pkcs1_md2WithRSAEncryption DATA
- asn1_oid_id_pkcs1_md5WithRSAEncryption DATA
- asn1_oid_id_pkcs1_rsaEncryption DATA
- asn1_oid_id_pkcs1_sha1WithRSAEncryption DATA
- asn1_oid_id_pkcs1_sha256WithRSAEncryption DATA
- asn1_oid_id_pkcs1_sha384WithRSAEncryption DATA
- asn1_oid_id_pkcs1_sha512WithRSAEncryption DATA
- asn1_oid_id_pkcs2_md2 DATA
- asn1_oid_id_pkcs2_md4 DATA
- asn1_oid_id_pkcs2_md5 DATA
- asn1_oid_id_pkcs3_des_ede3_cbc DATA
- asn1_oid_id_pkcs3_rc2_cbc DATA
- asn1_oid_id_pkcs3_rc4 DATA
- asn1_oid_id_pkcs7 DATA
- asn1_oid_id_pkcs7_data DATA
- asn1_oid_id_pkcs7_digestedData DATA
- asn1_oid_id_pkcs7_encryptedData DATA
- asn1_oid_id_pkcs7_envelopedData DATA
- asn1_oid_id_pkcs7_signedAndEnvelopedData DATA
- asn1_oid_id_pkcs7_signedData DATA
- asn1_oid_id_pkcs9_contentType DATA
- asn1_oid_id_pkcs9_countersignature DATA
- asn1_oid_id_pkcs9_emailAddress DATA
- asn1_oid_id_pkcs9_messageDigest DATA
- asn1_oid_id_pkcs9_signingTime DATA
- asn1_oid_id_pkcs_1 DATA
- asn1_oid_id_pkcs_12 DATA
- asn1_oid_id_pkcs_12PbeIds DATA
- asn1_oid_id_pkcs_2 DATA
- asn1_oid_id_pkcs_3 DATA
- asn1_oid_id_pkcs_9 DATA
- asn1_oid_id_pkcs_9_at_certTypes DATA
- asn1_oid_id_pkcs_9_at_certTypes_x509 DATA
- asn1_oid_id_pkcs_9_at_friendlyName DATA
- asn1_oid_id_pkcs_9_at_localKeyId DATA
- asn1_oid_id_pkdhkeydata DATA
- asn1_oid_id_pkekuoid DATA
- asn1_oid_id_pkinit DATA
- asn1_oid_id_pkinit_kdf DATA
- asn1_oid_id_pkinit_kdf_ah_sha1 DATA
- asn1_oid_id_pkinit_kdf_ah_sha256 DATA
- asn1_oid_id_pkinit_kdf_ah_sha512 DATA
- asn1_oid_id_pkinit_ms_eku DATA
- asn1_oid_id_pkinit_ms_san DATA
- asn1_oid_id_pkinit_san DATA
- asn1_oid_id_pkix DATA
- asn1_oid_id_pkix_kp DATA
- asn1_oid_id_pkix_kp_OCSPSigning DATA
- asn1_oid_id_pkix_kp_clientAuth DATA
- asn1_oid_id_pkix_kp_emailProtection DATA
- asn1_oid_id_pkix_kp_serverAuth DATA
- asn1_oid_id_pkix_kp_timeStamping DATA
- asn1_oid_id_pkix_on DATA
- asn1_oid_id_pkix_on_dnsSRV DATA
- asn1_oid_id_pkix_on_xmppAddr DATA
- asn1_oid_id_pkix_pe DATA
- asn1_oid_id_pkix_pe_authorityInfoAccess DATA
- asn1_oid_id_pkix_pe_proxyCertInfo DATA
- asn1_oid_id_pkix_ppl DATA
- asn1_oid_id_pkix_ppl_anyLanguage DATA
- asn1_oid_id_pkix_ppl_independent DATA
- asn1_oid_id_pkix_ppl_inheritAll DATA
- asn1_oid_id_pkkdcekuoid DATA
- asn1_oid_id_pkrkeydata DATA
- asn1_oid_id_rsa_digestAlgorithm DATA
- asn1_oid_id_rsa_digest_md2 DATA
- asn1_oid_id_rsa_digest_md4 DATA
- asn1_oid_id_rsa_digest_md5 DATA
- asn1_oid_id_rsadsi_des_ede3_cbc DATA
- asn1_oid_id_rsadsi_encalg DATA
- asn1_oid_id_rsadsi_rc2_cbc DATA
- asn1_oid_id_secsig_sha_1 DATA
- asn1_oid_id_secsig_sha_1WithRSAEncryption DATA
- asn1_oid_id_sha224 DATA
- asn1_oid_id_sha256 DATA
- asn1_oid_id_sha384 DATA
- asn1_oid_id_sha512 DATA
- asn1_oid_id_uspkicommon_card_id DATA
- asn1_oid_id_uspkicommon_piv_interim DATA
- asn1_oid_id_x509_ce DATA
- asn1_oid_id_x509_ce_authorityKeyIdentifier DATA
- asn1_oid_id_x509_ce_basicConstraints DATA
- asn1_oid_id_x509_ce_cRLDistributionPoints DATA
- asn1_oid_id_x509_ce_cRLNumber DATA
- asn1_oid_id_x509_ce_cRLReason DATA
- asn1_oid_id_x509_ce_certificateIssuer DATA
- asn1_oid_id_x509_ce_certificatePolicies DATA
- asn1_oid_id_x509_ce_deltaCRLIndicator DATA
- asn1_oid_id_x509_ce_extKeyUsage DATA
- asn1_oid_id_x509_ce_freshestCRL DATA
- asn1_oid_id_x509_ce_holdInstructionCode DATA
- asn1_oid_id_x509_ce_inhibitAnyPolicy DATA
- asn1_oid_id_x509_ce_invalidityDate DATA
- asn1_oid_id_x509_ce_issuerAltName DATA
- asn1_oid_id_x509_ce_issuingDistributionPoint DATA
- asn1_oid_id_x509_ce_keyUsage DATA
- asn1_oid_id_x509_ce_nameConstraints DATA
- asn1_oid_id_x509_ce_policyConstraints DATA
- asn1_oid_id_x509_ce_policyMappings DATA
- asn1_oid_id_x509_ce_privateKeyUsagePeriod DATA
- asn1_oid_id_x509_ce_subjectAltName DATA
- asn1_oid_id_x509_ce_subjectDirectoryAttributes DATA
- asn1_oid_id_x509_ce_subjectKeyIdentifier DATA
- asn1_oid_id_x520_at DATA
- asn1_oid_id_x9_57 DATA
- copy_AD_AND_OR
- copy_AD_IF_RELEVANT
- copy_AD_INITIAL_VERIFIED_CAS
- copy_AD_KDCIssued
- copy_AD_LoginAlias
- copy_AD_MANDATORY_FOR_KDC
- copy_APOptions
- copy_AP_REP
- copy_AP_REQ
- copy_AS_REP
- copy_AS_REQ
- copy_AUTHDATA_TYPE
- copy_AccessDescription
- copy_AlgorithmIdentifier
- copy_Attribute
- copy_AttributeType
- copy_AttributeTypeAndValue
- copy_AttributeValue
- copy_AuthPack
- copy_AuthPack_Win2k
- copy_Authenticator
- copy_AuthorityInfoAccessSyntax
- copy_AuthorityKeyIdentifier
- copy_AuthorizationData
- copy_AuthorizationDataElement
- copy_BaseDistance
- copy_BasicConstraints
- copy_CKSUMTYPE
- copy_CMSAttributes
- copy_CMSCBCParameter
- copy_CMSEncryptedData
- copy_CMSIdentifier
- copy_CMSRC2CBCParameter
- copy_CMSVersion
- copy_CRLCertificateList
- copy_CRLDistributionPoints
- copy_CRLReason
- copy_Certificate
- copy_CertificateList
- copy_CertificateRevocationLists
- copy_CertificateSerialNumber
- copy_CertificateSet
- copy_Certificates
- copy_ChangePasswdDataMS
- copy_Checksum
- copy_ContentEncryptionAlgorithmIdentifier
- copy_ContentInfo
- copy_ContentType
- copy_DHNonce
- copy_DHParameter
- copy_DHPublicKey
- copy_DHRepInfo
- copy_DSAParams
- copy_DSAPublicKey
- copy_DSASigValue
- copy_DigestAlgorithmIdentifier
- copy_DigestAlgorithmIdentifiers
- copy_DigestError
- copy_DigestInfo
- copy_DigestInit
- copy_DigestInitReply
- copy_DigestREP
- copy_DigestREQ
- copy_DigestRepInner
- copy_DigestReqInner
- copy_DigestRequest
- copy_DigestResponse
- copy_DigestTypes
- copy_DirectoryString
- copy_DistributionPoint
- copy_DistributionPointName
- copy_DistributionPointReasonFlags
- copy_DomainParameters
- copy_ECDSA_Sig_Value
- copy_ECParameters
- copy_ECPoint
- copy_ENCTYPE
- copy_ETYPE_INFO
- copy_ETYPE_INFO2
- copy_ETYPE_INFO2_ENTRY
- copy_ETYPE_INFO_ENTRY
- copy_EncAPRepPart
- copy_EncASRepPart
- copy_EncKDCRepPart
- copy_EncKrbCredPart
- copy_EncKrbPrivPart
- copy_EncTGSRepPart
- copy_EncTicketPart
- copy_EncapsulatedContentInfo
- copy_EncryptedContent
- copy_EncryptedContentInfo
- copy_EncryptedData
- copy_EncryptedKey
- copy_EncryptionKey
- copy_EnvelopedData
- copy_EtypeList
- copy_ExtKeyUsage
- copy_Extension
- copy_Extensions
- copy_ExternalPrincipalIdentifier
- copy_ExternalPrincipalIdentifiers
- copy_FastOptions
- copy_GeneralName
- copy_GeneralNames
- copy_GeneralSubtree
- copy_GeneralSubtrees
- copy_HostAddress
- copy_HostAddresses
- copy_IssuerAndSerialNumber
- copy_KDCDHKeyInfo
- copy_KDCDHKeyInfo_Win2k
- copy_KDCOptions
- copy_KDC_REP
- copy_KDC_REQ
- copy_KDC_REQ_BODY
- copy_KDFAlgorithmId
- copy_KRB5PrincipalName
- copy_KRB5SignedPath
- copy_KRB5SignedPathData
- copy_KRB_CRED
- copy_KRB_ERROR
- copy_KRB_PRIV
- copy_KRB_SAFE
- copy_KRB_SAFE_BODY
- copy_KX509_ERROR_CODE
- copy_KerberosString
- copy_KerberosTime
- copy_KeyEncryptionAlgorithmIdentifier
- copy_KeyIdentifier
- copy_KeyTransRecipientInfo
- copy_KeyUsage
- copy_KrbCredInfo
- copy_KrbFastArmor
- copy_KrbFastArmoredRep
- copy_KrbFastArmoredReq
- copy_KrbFastFinished
- copy_KrbFastReq
- copy_KrbFastResponse
- copy_Kx509Request
- copy_Kx509Response
- copy_LR_TYPE
- copy_LastReq
- copy_MESSAGE_TYPE
- copy_METHOD_DATA
- copy_MS_UPN_SAN
- copy_MessageDigest
- copy_NAME_TYPE
- copy_NTLMInit
- copy_NTLMInitReply
- copy_NTLMReply
- copy_NTLMRequest
- copy_NTLMRequest2
- copy_NTLMResponse
- copy_Name
- copy_NameConstraints
- copy_OriginatorInfo
- copy_OtherName
- copy_PADATA_TYPE
- copy_PA_ClientCanonicalized
- copy_PA_ClientCanonicalizedNames
- copy_PA_DATA
- copy_PA_ENC_SAM_RESPONSE_ENC
- copy_PA_ENC_TS_ENC
- copy_PA_FX_FAST_REPLY
- copy_PA_FX_FAST_REQUEST
- copy_PA_PAC_REQUEST
- copy_PA_PK_AS_REP
- copy_PA_PK_AS_REP_BTMM
- copy_PA_PK_AS_REP_Win2k
- copy_PA_PK_AS_REQ
- copy_PA_PK_AS_REQ_Win2k
- copy_PA_S4U2Self
- copy_PA_SAM_CHALLENGE_2
- copy_PA_SAM_CHALLENGE_2_BODY
- copy_PA_SAM_REDIRECT
- copy_PA_SAM_RESPONSE_2
- copy_PA_SAM_TYPE
- copy_PA_SERVER_REFERRAL_DATA
- copy_PA_ServerReferralData
- copy_PA_SvrReferralData
- copy_PKAuthenticator
- copy_PKAuthenticator_Win2k
- copy_PKCS12_Attribute
- copy_PKCS12_Attributes
- copy_PKCS12_AuthenticatedSafe
- copy_PKCS12_CertBag
- copy_PKCS12_MacData
- copy_PKCS12_OctetString
- copy_PKCS12_PBEParams
- copy_PKCS12_PFX
- copy_PKCS12_SafeBag
- copy_PKCS12_SafeContents
- copy_PKCS8Attributes
- copy_PKCS8EncryptedData
- copy_PKCS8EncryptedPrivateKeyInfo
- copy_PKCS8PrivateKey
- copy_PKCS8PrivateKeyAlgorithmIdentifier
- copy_PKCS8PrivateKeyInfo
- copy_PKCS9_BMPString
- copy_PKCS9_friendlyName
- copy_PKIXXmppAddr
- copy_PROV_SRV_LOCATION
- copy_PkinitSP80056AOtherInfo
- copy_PkinitSuppPubInfo
- copy_Principal
- copy_PrincipalName
- copy_Principals
- copy_ProxyCertInfo
- copy_ProxyPolicy
- copy_RDNSequence
- copy_RSAPrivateKey
- copy_RSAPublicKey
- copy_Realm
- copy_RecipientIdentifier
- copy_RecipientInfo
- copy_RecipientInfos
- copy_RelativeDistinguishedName
- copy_ReplyKeyPack
- copy_ReplyKeyPack_Win2k
- copy_SAMFlags
- copy_SignatureAlgorithmIdentifier
- copy_SignatureValue
- copy_SignedData
- copy_SignerIdentifier
- copy_SignerInfo
- copy_SignerInfos
- copy_SubjectKeyIdentifier
- copy_SubjectPublicKeyInfo
- copy_TBSCRLCertList
- copy_TBSCertificate
- copy_TD_DH_PARAMETERS
- copy_TD_INVALID_CERTIFICATES
- copy_TD_TRUSTED_CERTIFIERS
- copy_TGS_REP
- copy_TGS_REQ
- copy_TYPED_DATA
- copy_Ticket
- copy_TicketFlags
- copy_Time
- copy_TransitedEncoding
- copy_TrustedCA
- copy_TrustedCA_Win2k
- copy_TypedData
- copy_UniqueIdentifier
- copy_UnprotectedAttributes
- copy_ValidationParms
- copy_Validity
- copy_Version
- copy_heim_any
- copy_heim_any_set
- copy_krb5int32
- copy_krb5uint32
- decode_AD_AND_OR
- decode_AD_IF_RELEVANT
- decode_AD_INITIAL_VERIFIED_CAS
- decode_AD_KDCIssued
- decode_AD_LoginAlias
- decode_AD_MANDATORY_FOR_KDC
- decode_APOptions
- decode_AP_REP
- decode_AP_REQ
- decode_AS_REP
- decode_AS_REQ
- decode_AUTHDATA_TYPE
- decode_AccessDescription
- decode_AlgorithmIdentifier
- decode_Attribute
- decode_AttributeType
- decode_AttributeTypeAndValue
- decode_AttributeValue
- decode_AuthPack
- decode_AuthPack_Win2k
- decode_Authenticator
- decode_AuthorityInfoAccessSyntax
- decode_AuthorityKeyIdentifier
- decode_AuthorizationData
- decode_AuthorizationDataElement
- decode_BaseDistance
- decode_BasicConstraints
- decode_CKSUMTYPE
- decode_CMSAttributes
- decode_CMSCBCParameter
- decode_CMSEncryptedData
- decode_CMSIdentifier
- decode_CMSRC2CBCParameter
- decode_CMSVersion
- decode_CRLCertificateList
- decode_CRLDistributionPoints
- decode_CRLReason
- decode_Certificate
- decode_CertificateList
- decode_CertificateRevocationLists
- decode_CertificateSerialNumber
- decode_CertificateSet
- decode_Certificates
- decode_ChangePasswdDataMS
- decode_Checksum
- decode_ContentEncryptionAlgorithmIdentifier
- decode_ContentInfo
- decode_ContentType
- decode_DHNonce
- decode_DHParameter
- decode_DHPublicKey
- decode_DHRepInfo
- decode_DSAParams
- decode_DSAPublicKey
- decode_DSASigValue
- decode_DigestAlgorithmIdentifier
- decode_DigestAlgorithmIdentifiers
- decode_DigestError
- decode_DigestInfo
- decode_DigestInit
- decode_DigestInitReply
- decode_DigestREP
- decode_DigestREQ
- decode_DigestRepInner
- decode_DigestReqInner
- decode_DigestRequest
- decode_DigestResponse
- decode_DigestTypes
- decode_DirectoryString
- decode_DistributionPoint
- decode_DistributionPointName
- decode_DistributionPointReasonFlags
- decode_DomainParameters
- decode_ECDSA_Sig_Value
- decode_ECParameters
- decode_ECPoint
- decode_ENCTYPE
- decode_ETYPE_INFO
- decode_ETYPE_INFO2
- decode_ETYPE_INFO2_ENTRY
- decode_ETYPE_INFO_ENTRY
- decode_EncAPRepPart
- decode_EncASRepPart
- decode_EncKDCRepPart
- decode_EncKrbCredPart
- decode_EncKrbPrivPart
- decode_EncTGSRepPart
- decode_EncTicketPart
- decode_EncapsulatedContentInfo
- decode_EncryptedContent
- decode_EncryptedContentInfo
- decode_EncryptedData
- decode_EncryptedKey
- decode_EncryptionKey
- decode_EnvelopedData
- decode_EtypeList
- decode_ExtKeyUsage
- decode_Extension
- decode_Extensions
- decode_ExternalPrincipalIdentifier
- decode_ExternalPrincipalIdentifiers
- decode_FastOptions
- decode_GeneralName
- decode_GeneralNames
- decode_GeneralSubtree
- decode_GeneralSubtrees
- decode_HostAddress
- decode_HostAddresses
- decode_IssuerAndSerialNumber
- decode_KDCDHKeyInfo
- decode_KDCDHKeyInfo_Win2k
- decode_KDCOptions
- decode_KDC_REP
- decode_KDC_REQ
- decode_KDC_REQ_BODY
- decode_KDFAlgorithmId
- decode_KRB5PrincipalName
- decode_KRB5SignedPath
- decode_KRB5SignedPathData
- decode_KRB_CRED
- decode_KRB_ERROR
- decode_KRB_PRIV
- decode_KRB_SAFE
- decode_KRB_SAFE_BODY
- decode_KX509_ERROR_CODE
- decode_KerberosString
- decode_KerberosTime
- decode_KeyEncryptionAlgorithmIdentifier
- decode_KeyIdentifier
- decode_KeyTransRecipientInfo
- decode_KeyUsage
- decode_KrbCredInfo
- decode_KrbFastArmor
- decode_KrbFastArmoredRep
- decode_KrbFastArmoredReq
- decode_KrbFastFinished
- decode_KrbFastReq
- decode_KrbFastResponse
- decode_Kx509Request
- decode_Kx509Response
- decode_LR_TYPE
- decode_LastReq
- decode_MESSAGE_TYPE
- decode_METHOD_DATA
- decode_MS_UPN_SAN
- decode_MessageDigest
- decode_NAME_TYPE
- decode_NTLMInit
- decode_NTLMInitReply
- decode_NTLMReply
- decode_NTLMRequest
- decode_NTLMRequest2
- decode_NTLMResponse
- decode_Name
- decode_NameConstraints
- decode_OriginatorInfo
- decode_OtherName
- decode_PADATA_TYPE
- decode_PA_ClientCanonicalized
- decode_PA_ClientCanonicalizedNames
- decode_PA_DATA
- decode_PA_ENC_SAM_RESPONSE_ENC
- decode_PA_ENC_TS_ENC
- decode_PA_FX_FAST_REPLY
- decode_PA_FX_FAST_REQUEST
- decode_PA_PAC_REQUEST
- decode_PA_PK_AS_REP
- decode_PA_PK_AS_REP_BTMM
- decode_PA_PK_AS_REP_Win2k
- decode_PA_PK_AS_REQ
- decode_PA_PK_AS_REQ_Win2k
- decode_PA_S4U2Self
- decode_PA_SAM_CHALLENGE_2
- decode_PA_SAM_CHALLENGE_2_BODY
- decode_PA_SAM_REDIRECT
- decode_PA_SAM_RESPONSE_2
- decode_PA_SAM_TYPE
- decode_PA_SERVER_REFERRAL_DATA
- decode_PA_ServerReferralData
- decode_PA_SvrReferralData
- decode_PKAuthenticator
- decode_PKAuthenticator_Win2k
- decode_PKCS12_Attribute
- decode_PKCS12_Attributes
- decode_PKCS12_AuthenticatedSafe
- decode_PKCS12_CertBag
- decode_PKCS12_MacData
- decode_PKCS12_OctetString
- decode_PKCS12_PBEParams
- decode_PKCS12_PFX
- decode_PKCS12_SafeBag
- decode_PKCS12_SafeContents
- decode_PKCS8Attributes
- decode_PKCS8EncryptedData
- decode_PKCS8EncryptedPrivateKeyInfo
- decode_PKCS8PrivateKey
- decode_PKCS8PrivateKeyAlgorithmIdentifier
- decode_PKCS8PrivateKeyInfo
- decode_PKCS9_BMPString
- decode_PKCS9_friendlyName
- decode_PKIXXmppAddr
- decode_PROV_SRV_LOCATION
- decode_PkinitSP80056AOtherInfo
- decode_PkinitSuppPubInfo
- decode_Principal
- decode_PrincipalName
- decode_Principals
- decode_ProxyCertInfo
- decode_ProxyPolicy
- decode_RDNSequence
- decode_RSAPrivateKey
- decode_RSAPublicKey
- decode_Realm
- decode_RecipientIdentifier
- decode_RecipientInfo
- decode_RecipientInfos
- decode_RelativeDistinguishedName
- decode_ReplyKeyPack
- decode_ReplyKeyPack_Win2k
- decode_SAMFlags
- decode_SignatureAlgorithmIdentifier
- decode_SignatureValue
- decode_SignedData
- decode_SignerIdentifier
- decode_SignerInfo
- decode_SignerInfos
- decode_SubjectKeyIdentifier
- decode_SubjectPublicKeyInfo
- decode_TBSCRLCertList
- decode_TBSCertificate
- decode_TD_DH_PARAMETERS
- decode_TD_INVALID_CERTIFICATES
- decode_TD_TRUSTED_CERTIFIERS
- decode_TGS_REP
- decode_TGS_REQ
- decode_TYPED_DATA
- decode_Ticket
- decode_TicketFlags
- decode_Time
- decode_TransitedEncoding
- decode_TrustedCA
- decode_TrustedCA_Win2k
- decode_TypedData
- decode_UniqueIdentifier
- decode_UnprotectedAttributes
- decode_ValidationParms
- decode_Validity
- decode_Version
- decode_heim_any
- decode_heim_any_set
- decode_krb5int32
- decode_krb5uint32
- der_copy_bit_string
- der_copy_bmp_string
- der_copy_general_string
- der_copy_generalized_time
- der_copy_heim_integer
- der_copy_ia5_string
- der_copy_integer
- der_copy_octet_string
- der_copy_oid
- der_copy_printable_string
- der_copy_universal_string
- der_copy_unsigned
- der_copy_utctime
- der_copy_utf8string
- der_copy_visible_string
- der_free_bit_string
- der_free_bmp_string
- der_free_general_string
- der_free_generalized_time
- der_free_heim_integer
- der_free_ia5_string
- der_free_integer
- der_free_octet_string
- der_free_oid
- der_free_printable_string
- der_free_universal_string
- der_free_unsigned
- der_free_utctime
- der_free_utf8string
- der_free_visible_string
- der_get_bit_string
- der_get_bmp_string
- der_get_boolean
- der_get_class_name
- der_get_class_num
- der_get_general_string
- der_get_generalized_time
- der_get_heim_integer
- der_get_ia5_string
- der_get_integer
- der_get_length
- der_get_octet_string
- der_get_octet_string_ber
- der_get_oid
- der_get_printable_string
- der_get_tag
- der_get_tag_name
- der_get_tag_num
- der_get_type_name
- der_get_type_num
- der_get_universal_string
- der_get_unsigned
- der_get_utctime
- der_get_utf8string
- der_get_visible_string
- der_heim_bit_string_cmp
- der_heim_bmp_string_cmp
- der_heim_integer_cmp
- der_heim_octet_string_cmp
- der_heim_oid_cmp
- der_heim_universal_string_cmp
- der_ia5_string_cmp
- der_length_bit_string
- der_length_bmp_string
- der_length_boolean
- der_length_enumerated
- der_length_general_string
- der_length_generalized_time
- der_length_heim_integer
- der_length_ia5_string
- der_length_integer
- der_length_len
- der_length_octet_string
- der_length_oid
- der_length_printable_string
- der_length_tag
- der_length_universal_string
- der_length_unsigned
- der_length_utctime
- der_length_utf8string
- der_length_visible_string
- der_match_tag
- der_match_tag2
- der_match_tag_and_length
- der_parse_heim_oid
- der_parse_hex_heim_integer
- der_print_heim_oid
- der_print_hex_heim_integer
- der_printable_string_cmp
- der_put_bit_string
- der_put_bmp_string
- der_put_boolean
- der_put_general_string
- der_put_generalized_time
- der_put_heim_integer
- der_put_ia5_string
- der_put_integer
- der_put_length
- der_put_length_and_tag
- der_put_octet_string
- der_put_oid
- der_put_printable_string
- der_put_tag
- der_put_universal_string
- der_put_unsigned
- der_put_utctime
- der_put_utf8string
- der_put_visible_string
- encode_AD_AND_OR
- encode_AD_IF_RELEVANT
- encode_AD_INITIAL_VERIFIED_CAS
- encode_AD_KDCIssued
- encode_AD_LoginAlias
- encode_AD_MANDATORY_FOR_KDC
- encode_APOptions
- encode_AP_REP
- encode_AP_REQ
- encode_AS_REP
- encode_AS_REQ
- encode_AUTHDATA_TYPE
- encode_AccessDescription
- encode_AlgorithmIdentifier
- encode_Attribute
- encode_AttributeType
- encode_AttributeTypeAndValue
- encode_AttributeValue
- encode_AuthPack
- encode_AuthPack_Win2k
- encode_Authenticator
- encode_AuthorityInfoAccessSyntax
- encode_AuthorityKeyIdentifier
- encode_AuthorizationData
- encode_AuthorizationDataElement
- encode_BaseDistance
- encode_BasicConstraints
- encode_CKSUMTYPE
- encode_CMSAttributes
- encode_CMSCBCParameter
- encode_CMSEncryptedData
- encode_CMSIdentifier
- encode_CMSRC2CBCParameter
- encode_CMSVersion
- encode_CRLCertificateList
- encode_CRLDistributionPoints
- encode_CRLReason
- encode_Certificate
- encode_CertificateList
- encode_CertificateRevocationLists
- encode_CertificateSerialNumber
- encode_CertificateSet
- encode_Certificates
- encode_ChangePasswdDataMS
- encode_Checksum
- encode_ContentEncryptionAlgorithmIdentifier
- encode_ContentInfo
- encode_ContentType
- encode_DHNonce
- encode_DHParameter
- encode_DHPublicKey
- encode_DHRepInfo
- encode_DSAParams
- encode_DSAPublicKey
- encode_DSASigValue
- encode_DigestAlgorithmIdentifier
- encode_DigestAlgorithmIdentifiers
- encode_DigestError
- encode_DigestInfo
- encode_DigestInit
- encode_DigestInitReply
- encode_DigestREP
- encode_DigestREQ
- encode_DigestRepInner
- encode_DigestReqInner
- encode_DigestRequest
- encode_DigestResponse
- encode_DigestTypes
- encode_DirectoryString
- encode_DistributionPoint
- encode_DistributionPointName
- encode_DistributionPointReasonFlags
- encode_DomainParameters
- encode_ECDSA_Sig_Value
- encode_ECParameters
- encode_ECPoint
- encode_ENCTYPE
- encode_ETYPE_INFO
- encode_ETYPE_INFO2
- encode_ETYPE_INFO2_ENTRY
- encode_ETYPE_INFO_ENTRY
- encode_EncAPRepPart
- encode_EncASRepPart
- encode_EncKDCRepPart
- encode_EncKrbCredPart
- encode_EncKrbPrivPart
- encode_EncTGSRepPart
- encode_EncTicketPart
- encode_EncapsulatedContentInfo
- encode_EncryptedContent
- encode_EncryptedContentInfo
- encode_EncryptedData
- encode_EncryptedKey
- encode_EncryptionKey
- encode_EnvelopedData
- encode_EtypeList
- encode_ExtKeyUsage
- encode_Extension
- encode_Extensions
- encode_ExternalPrincipalIdentifier
- encode_ExternalPrincipalIdentifiers
- encode_FastOptions
- encode_GeneralName
- encode_GeneralNames
- encode_GeneralSubtree
- encode_GeneralSubtrees
- encode_HostAddress
- encode_HostAddresses
- encode_IssuerAndSerialNumber
- encode_KDCDHKeyInfo
- encode_KDCDHKeyInfo_Win2k
- encode_KDCOptions
- encode_KDC_REP
- encode_KDC_REQ
- encode_KDC_REQ_BODY
- encode_KDFAlgorithmId
- encode_KRB5PrincipalName
- encode_KRB5SignedPath
- encode_KRB5SignedPathData
- encode_KRB_CRED
- encode_KRB_ERROR
- encode_KRB_PRIV
- encode_KRB_SAFE
- encode_KRB_SAFE_BODY
- encode_KX509_ERROR_CODE
- encode_KerberosString
- encode_KerberosTime
- encode_KeyEncryptionAlgorithmIdentifier
- encode_KeyIdentifier
- encode_KeyTransRecipientInfo
- encode_KeyUsage
- encode_KrbCredInfo
- encode_KrbFastArmor
- encode_KrbFastArmoredRep
- encode_KrbFastArmoredReq
- encode_KrbFastFinished
- encode_KrbFastReq
- encode_KrbFastResponse
- encode_Kx509Request
- encode_Kx509Response
- encode_LR_TYPE
- encode_LastReq
- encode_MESSAGE_TYPE
- encode_METHOD_DATA
- encode_MS_UPN_SAN
- encode_MessageDigest
- encode_NAME_TYPE
- encode_NTLMInit
- encode_NTLMInitReply
- encode_NTLMReply
- encode_NTLMRequest
- encode_NTLMRequest2
- encode_NTLMResponse
- encode_Name
- encode_NameConstraints
- encode_OriginatorInfo
- encode_OtherName
- encode_PADATA_TYPE
- encode_PA_ClientCanonicalized
- encode_PA_ClientCanonicalizedNames
- encode_PA_DATA
- encode_PA_ENC_SAM_RESPONSE_ENC
- encode_PA_ENC_TS_ENC
- encode_PA_FX_FAST_REPLY
- encode_PA_FX_FAST_REQUEST
- encode_PA_PAC_REQUEST
- encode_PA_PK_AS_REP
- encode_PA_PK_AS_REP_BTMM
- encode_PA_PK_AS_REP_Win2k
- encode_PA_PK_AS_REQ
- encode_PA_PK_AS_REQ_Win2k
- encode_PA_S4U2Self
- encode_PA_SAM_CHALLENGE_2
- encode_PA_SAM_CHALLENGE_2_BODY
- encode_PA_SAM_REDIRECT
- encode_PA_SAM_RESPONSE_2
- encode_PA_SAM_TYPE
- encode_PA_SERVER_REFERRAL_DATA
- encode_PA_ServerReferralData
- encode_PA_SvrReferralData
- encode_PKAuthenticator
- encode_PKAuthenticator_Win2k
- encode_PKCS12_Attribute
- encode_PKCS12_Attributes
- encode_PKCS12_AuthenticatedSafe
- encode_PKCS12_CertBag
- encode_PKCS12_MacData
- encode_PKCS12_OctetString
- encode_PKCS12_PBEParams
- encode_PKCS12_PFX
- encode_PKCS12_SafeBag
- encode_PKCS12_SafeContents
- encode_PKCS8Attributes
- encode_PKCS8EncryptedData
- encode_PKCS8EncryptedPrivateKeyInfo
- encode_PKCS8PrivateKey
- encode_PKCS8PrivateKeyAlgorithmIdentifier
- encode_PKCS8PrivateKeyInfo
- encode_PKCS9_BMPString
- encode_PKCS9_friendlyName
- encode_PKIXXmppAddr
- encode_PROV_SRV_LOCATION
- encode_PkinitSP80056AOtherInfo
- encode_PkinitSuppPubInfo
- encode_Principal
- encode_PrincipalName
- encode_Principals
- encode_ProxyCertInfo
- encode_ProxyPolicy
- encode_RDNSequence
- encode_RSAPrivateKey
- encode_RSAPublicKey
- encode_Realm
- encode_RecipientIdentifier
- encode_RecipientInfo
- encode_RecipientInfos
- encode_RelativeDistinguishedName
- encode_ReplyKeyPack
- encode_ReplyKeyPack_Win2k
- encode_SAMFlags
- encode_SignatureAlgorithmIdentifier
- encode_SignatureValue
- encode_SignedData
- encode_SignerIdentifier
- encode_SignerInfo
- encode_SignerInfos
- encode_SubjectKeyIdentifier
- encode_SubjectPublicKeyInfo
- encode_TBSCRLCertList
- encode_TBSCertificate
- encode_TD_DH_PARAMETERS
- encode_TD_INVALID_CERTIFICATES
- encode_TD_TRUSTED_CERTIFIERS
- encode_TGS_REP
- encode_TGS_REQ
- encode_TYPED_DATA
- encode_Ticket
- encode_TicketFlags
- encode_Time
- encode_TransitedEncoding
- encode_TrustedCA
- encode_TrustedCA_Win2k
- encode_TypedData
- encode_UniqueIdentifier
- encode_UnprotectedAttributes
- encode_ValidationParms
- encode_Validity
- encode_Version
- encode_heim_any
- encode_heim_any_set
- encode_krb5int32
- encode_krb5uint32
- free_AD_AND_OR
- free_AD_IF_RELEVANT
- free_AD_INITIAL_VERIFIED_CAS
- free_AD_KDCIssued
- free_AD_LoginAlias
- free_AD_MANDATORY_FOR_KDC
- free_APOptions
- free_AP_REP
- free_AP_REQ
- free_AS_REP
- free_AS_REQ
- free_AUTHDATA_TYPE
- free_AccessDescription
- free_AlgorithmIdentifier
- free_Attribute
- free_AttributeType
- free_AttributeTypeAndValue
- free_AttributeValue
- free_AuthPack
- free_AuthPack_Win2k
- free_Authenticator
- free_AuthorityInfoAccessSyntax
- free_AuthorityKeyIdentifier
- free_AuthorizationData
- free_AuthorizationDataElement
- free_BaseDistance
- free_BasicConstraints
- free_CKSUMTYPE
- free_CMSAttributes
- free_CMSCBCParameter
- free_CMSEncryptedData
- free_CMSIdentifier
- free_CMSRC2CBCParameter
- free_CMSVersion
- free_CRLCertificateList
- free_CRLDistributionPoints
- free_CRLReason
- free_Certificate
- free_CertificateList
- free_CertificateRevocationLists
- free_CertificateSerialNumber
- free_CertificateSet
- free_Certificates
- free_ChangePasswdDataMS
- free_Checksum
- free_ContentEncryptionAlgorithmIdentifier
- free_ContentInfo
- free_ContentType
- free_DHNonce
- free_DHParameter
- free_DHPublicKey
- free_DHRepInfo
- free_DSAParams
- free_DSAPublicKey
- free_DSASigValue
- free_DigestAlgorithmIdentifier
- free_DigestAlgorithmIdentifiers
- free_DigestError
- free_DigestInfo
- free_DigestInit
- free_DigestInitReply
- free_DigestREP
- free_DigestREQ
- free_DigestRepInner
- free_DigestReqInner
- free_DigestRequest
- free_DigestResponse
- free_DigestTypes
- free_DirectoryString
- free_DistributionPoint
- free_DistributionPointName
- free_DistributionPointReasonFlags
- free_DomainParameters
- free_ECDSA_Sig_Value
- free_ECParameters
- free_ECPoint
- free_ENCTYPE
- free_ETYPE_INFO
- free_ETYPE_INFO2
- free_ETYPE_INFO2_ENTRY
- free_ETYPE_INFO_ENTRY
- free_EncAPRepPart
- free_EncASRepPart
- free_EncKDCRepPart
- free_EncKrbCredPart
- free_EncKrbPrivPart
- free_EncTGSRepPart
- free_EncTicketPart
- free_EncapsulatedContentInfo
- free_EncryptedContent
- free_EncryptedContentInfo
- free_EncryptedData
- free_EncryptedKey
- free_EncryptionKey
- free_EnvelopedData
- free_EtypeList
- free_ExtKeyUsage
- free_Extension
- free_Extensions
- free_ExternalPrincipalIdentifier
- free_ExternalPrincipalIdentifiers
- free_FastOptions
- free_GeneralName
- free_GeneralNames
- free_GeneralSubtree
- free_GeneralSubtrees
- free_HostAddress
- free_HostAddresses
- free_IssuerAndSerialNumber
- free_KDCDHKeyInfo
- free_KDCDHKeyInfo_Win2k
- free_KDCOptions
- free_KDC_REP
- free_KDC_REQ
- free_KDC_REQ_BODY
- free_KDFAlgorithmId
- free_KRB5PrincipalName
- free_KRB5SignedPath
- free_KRB5SignedPathData
- free_KRB_CRED
- free_KRB_ERROR
- free_KRB_PRIV
- free_KRB_SAFE
- free_KRB_SAFE_BODY
- free_KX509_ERROR_CODE
- free_KerberosString
- free_KerberosTime
- free_KeyEncryptionAlgorithmIdentifier
- free_KeyIdentifier
- free_KeyTransRecipientInfo
- free_KeyUsage
- free_KrbCredInfo
- free_KrbFastArmor
- free_KrbFastArmoredRep
- free_KrbFastArmoredReq
- free_KrbFastFinished
- free_KrbFastReq
- free_KrbFastResponse
- free_Kx509Request
- free_Kx509Response
- free_LR_TYPE
- free_LastReq
- free_MESSAGE_TYPE
- free_METHOD_DATA
- free_MS_UPN_SAN
- free_MessageDigest
- free_NAME_TYPE
- free_NTLMInit
- free_NTLMInitReply
- free_NTLMReply
- free_NTLMRequest
- free_NTLMRequest2
- free_NTLMResponse
- free_Name
- free_NameConstraints
- free_OriginatorInfo
- free_OtherName
- free_PADATA_TYPE
- free_PA_ClientCanonicalized
- free_PA_ClientCanonicalizedNames
- free_PA_DATA
- free_PA_ENC_SAM_RESPONSE_ENC
- free_PA_ENC_TS_ENC
- free_PA_FX_FAST_REPLY
- free_PA_FX_FAST_REQUEST
- free_PA_PAC_REQUEST
- free_PA_PK_AS_REP
- free_PA_PK_AS_REP_BTMM
- free_PA_PK_AS_REP_Win2k
- free_PA_PK_AS_REQ
- free_PA_PK_AS_REQ_Win2k
- free_PA_S4U2Self
- free_PA_SAM_CHALLENGE_2
- free_PA_SAM_CHALLENGE_2_BODY
- free_PA_SAM_REDIRECT
- free_PA_SAM_RESPONSE_2
- free_PA_SAM_TYPE
- free_PA_SERVER_REFERRAL_DATA
- free_PA_ServerReferralData
- free_PA_SvrReferralData
- free_PKAuthenticator
- free_PKAuthenticator_Win2k
- free_PKCS12_Attribute
- free_PKCS12_Attributes
- free_PKCS12_AuthenticatedSafe
- free_PKCS12_CertBag
- free_PKCS12_MacData
- free_PKCS12_OctetString
- free_PKCS12_PBEParams
- free_PKCS12_PFX
- free_PKCS12_SafeBag
- free_PKCS12_SafeContents
- free_PKCS8Attributes
- free_PKCS8EncryptedData
- free_PKCS8EncryptedPrivateKeyInfo
- free_PKCS8PrivateKey
- free_PKCS8PrivateKeyAlgorithmIdentifier
- free_PKCS8PrivateKeyInfo
- free_PKCS9_BMPString
- free_PKCS9_friendlyName
- free_PKIXXmppAddr
- free_PROV_SRV_LOCATION
- free_PkinitSP80056AOtherInfo
- free_PkinitSuppPubInfo
- free_Principal
- free_PrincipalName
- free_Principals
- free_ProxyCertInfo
- free_ProxyPolicy
- free_RDNSequence
- free_RSAPrivateKey
- free_RSAPublicKey
- free_Realm
- free_RecipientIdentifier
- free_RecipientInfo
- free_RecipientInfos
- free_RelativeDistinguishedName
- free_ReplyKeyPack
- free_ReplyKeyPack_Win2k
- free_SAMFlags
- free_SignatureAlgorithmIdentifier
- free_SignatureValue
- free_SignedData
- free_SignerIdentifier
- free_SignerInfo
- free_SignerInfos
- free_SubjectKeyIdentifier
- free_SubjectPublicKeyInfo
- free_TBSCRLCertList
- free_TBSCertificate
- free_TD_DH_PARAMETERS
- free_TD_INVALID_CERTIFICATES
- free_TD_TRUSTED_CERTIFIERS
- free_TGS_REP
- free_TGS_REQ
- free_TYPED_DATA
- free_Ticket
- free_TicketFlags
- free_Time
- free_TransitedEncoding
- free_TrustedCA
- free_TrustedCA_Win2k
- free_TypedData
- free_UniqueIdentifier
- free_UnprotectedAttributes
- free_ValidationParms
- free_Validity
- free_Version
- free_heim_any
- free_heim_any_set
- free_krb5int32
- free_krb5uint32
- heim_any_cmp
- initialize_asn1_error_table
- initialize_asn1_error_table_r
- int2APOptions
- int2DigestTypes
- int2DistributionPointReasonFlags
- int2FastOptions
- int2KDCOptions
- int2KeyUsage
- int2SAMFlags
- int2TicketFlags
- length_AD_AND_OR
- length_AD_IF_RELEVANT
- length_AD_INITIAL_VERIFIED_CAS
- length_AD_KDCIssued
- length_AD_LoginAlias
- length_AD_MANDATORY_FOR_KDC
- length_APOptions
- length_AP_REP
- length_AP_REQ
- length_AS_REP
- length_AS_REQ
- length_AUTHDATA_TYPE
- length_AccessDescription
- length_AlgorithmIdentifier
- length_Attribute
- length_AttributeType
- length_AttributeTypeAndValue
- length_AttributeValue
- length_AuthPack
- length_AuthPack_Win2k
- length_Authenticator
- length_AuthorityInfoAccessSyntax
- length_AuthorityKeyIdentifier
- length_AuthorizationData
- length_AuthorizationDataElement
- length_BaseDistance
- length_BasicConstraints
- length_CKSUMTYPE
- length_CMSAttributes
- length_CMSCBCParameter
- length_CMSEncryptedData
- length_CMSIdentifier
- length_CMSRC2CBCParameter
- length_CMSVersion
- length_CRLCertificateList
- length_CRLDistributionPoints
- length_CRLReason
- length_Certificate
- length_CertificateList
- length_CertificateRevocationLists
- length_CertificateSerialNumber
- length_CertificateSet
- length_Certificates
- length_ChangePasswdDataMS
- length_Checksum
- length_ContentEncryptionAlgorithmIdentifier
- length_ContentInfo
- length_ContentType
- length_DHNonce
- length_DHParameter
- length_DHPublicKey
- length_DHRepInfo
- length_DSAParams
- length_DSAPublicKey
- length_DSASigValue
- length_DigestAlgorithmIdentifier
- length_DigestAlgorithmIdentifiers
- length_DigestError
- length_DigestInfo
- length_DigestInit
- length_DigestInitReply
- length_DigestREP
- length_DigestREQ
- length_DigestRepInner
- length_DigestReqInner
- length_DigestRequest
- length_DigestResponse
- length_DigestTypes
- length_DirectoryString
- length_DistributionPoint
- length_DistributionPointName
- length_DistributionPointReasonFlags
- length_DomainParameters
- length_ECDSA_Sig_Value
- length_ECParameters
- length_ECPoint
- length_ENCTYPE
- length_ETYPE_INFO
- length_ETYPE_INFO2
- length_ETYPE_INFO2_ENTRY
- length_ETYPE_INFO_ENTRY
- length_EncAPRepPart
- length_EncASRepPart
- length_EncKDCRepPart
- length_EncKrbCredPart
- length_EncKrbPrivPart
- length_EncTGSRepPart
- length_EncTicketPart
- length_EncapsulatedContentInfo
- length_EncryptedContent
- length_EncryptedContentInfo
- length_EncryptedData
- length_EncryptedKey
- length_EncryptionKey
- length_EnvelopedData
- length_EtypeList
- length_ExtKeyUsage
- length_Extension
- length_Extensions
- length_ExternalPrincipalIdentifier
- length_ExternalPrincipalIdentifiers
- length_FastOptions
- length_GeneralName
- length_GeneralNames
- length_GeneralSubtree
- length_GeneralSubtrees
- length_HostAddress
- length_HostAddresses
- length_IssuerAndSerialNumber
- length_KDCDHKeyInfo
- length_KDCDHKeyInfo_Win2k
- length_KDCOptions
- length_KDC_REP
- length_KDC_REQ
- length_KDC_REQ_BODY
- length_KDFAlgorithmId
- length_KRB5PrincipalName
- length_KRB5SignedPath
- length_KRB5SignedPathData
- length_KRB_CRED
- length_KRB_ERROR
- length_KRB_PRIV
- length_KRB_SAFE
- length_KRB_SAFE_BODY
- length_KX509_ERROR_CODE
- length_KerberosString
- length_KerberosTime
- length_KeyEncryptionAlgorithmIdentifier
- length_KeyIdentifier
- length_KeyTransRecipientInfo
- length_KeyUsage
- length_KrbCredInfo
- length_KrbFastArmor
- length_KrbFastArmoredRep
- length_KrbFastArmoredReq
- length_KrbFastFinished
- length_KrbFastReq
- length_KrbFastResponse
- length_Kx509Request
- length_Kx509Response
- length_LR_TYPE
- length_LastReq
- length_MESSAGE_TYPE
- length_METHOD_DATA
- length_MS_UPN_SAN
- length_MessageDigest
- length_NAME_TYPE
- length_NTLMInit
- length_NTLMInitReply
- length_NTLMReply
- length_NTLMRequest
- length_NTLMRequest2
- length_NTLMResponse
- length_Name
- length_NameConstraints
- length_OriginatorInfo
- length_OtherName
- length_PADATA_TYPE
- length_PA_ClientCanonicalized
- length_PA_ClientCanonicalizedNames
- length_PA_DATA
- length_PA_ENC_SAM_RESPONSE_ENC
- length_PA_ENC_TS_ENC
- length_PA_FX_FAST_REPLY
- length_PA_FX_FAST_REQUEST
- length_PA_PAC_REQUEST
- length_PA_PK_AS_REP
- length_PA_PK_AS_REP_BTMM
- length_PA_PK_AS_REP_Win2k
- length_PA_PK_AS_REQ
- length_PA_PK_AS_REQ_Win2k
- length_PA_S4U2Self
- length_PA_SAM_CHALLENGE_2
- length_PA_SAM_CHALLENGE_2_BODY
- length_PA_SAM_REDIRECT
- length_PA_SAM_RESPONSE_2
- length_PA_SAM_TYPE
- length_PA_SERVER_REFERRAL_DATA
- length_PA_ServerReferralData
- length_PA_SvrReferralData
- length_PKAuthenticator
- length_PKAuthenticator_Win2k
- length_PKCS12_Attribute
- length_PKCS12_Attributes
- length_PKCS12_AuthenticatedSafe
- length_PKCS12_CertBag
- length_PKCS12_MacData
- length_PKCS12_OctetString
- length_PKCS12_PBEParams
- length_PKCS12_PFX
- length_PKCS12_SafeBag
- length_PKCS12_SafeContents
- length_PKCS8Attributes
- length_PKCS8EncryptedData
- length_PKCS8EncryptedPrivateKeyInfo
- length_PKCS8PrivateKey
- length_PKCS8PrivateKeyAlgorithmIdentifier
- length_PKCS8PrivateKeyInfo
- length_PKCS9_BMPString
- length_PKCS9_friendlyName
- length_PKIXXmppAddr
- length_PROV_SRV_LOCATION
- length_PkinitSP80056AOtherInfo
- length_PkinitSuppPubInfo
- length_Principal
- length_PrincipalName
- length_Principals
- length_ProxyCertInfo
- length_ProxyPolicy
- length_RDNSequence
- length_RSAPrivateKey
- length_RSAPublicKey
- length_Realm
- length_RecipientIdentifier
- length_RecipientInfo
- length_RecipientInfos
- length_RelativeDistinguishedName
- length_ReplyKeyPack
- length_ReplyKeyPack_Win2k
- length_SAMFlags
- length_SignatureAlgorithmIdentifier
- length_SignatureValue
- length_SignedData
- length_SignerIdentifier
- length_SignerInfo
- length_SignerInfos
- length_SubjectKeyIdentifier
- length_SubjectPublicKeyInfo
- length_TBSCRLCertList
- length_TBSCertificate
- length_TD_DH_PARAMETERS
- length_TD_INVALID_CERTIFICATES
- length_TD_TRUSTED_CERTIFIERS
- length_TGS_REP
- length_TGS_REQ
- length_TYPED_DATA
- length_Ticket
- length_TicketFlags
- length_Time
- length_TransitedEncoding
- length_TrustedCA
- length_TrustedCA_Win2k
- length_TypedData
- length_UniqueIdentifier
- length_UnprotectedAttributes
- length_ValidationParms
- length_Validity
- length_Version
- length_heim_any
- length_heim_any_set
- length_krb5int32
- length_krb5uint32
- remove_AuthorizationData
- remove_CRLDistributionPoints
- remove_DigestAlgorithmIdentifiers
- remove_ETYPE_INFO
- remove_ETYPE_INFO2
- remove_Extensions
- remove_GeneralNames
- remove_METHOD_DATA
- remove_Principals
Deleted: trunk/crypto/heimdal/lib/asn1/parse.c
===================================================================
--- trunk/crypto/heimdal/lib/asn1/parse.c 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/parse.c 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,2831 +0,0 @@
-/* A Bison parser, made by GNU Bison 2.3. */
-
-/* Skeleton implementation for Bison's Yacc-like parsers in C
-
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-/* C LALR(1) parser skeleton written by Richard Stallman, by
- simplifying the original so-called "semantic" parser. */
-
-/* All symbols defined below should begin with yy or YY, to avoid
- infringing on user name space. This should be done even for local
- variables, as they might otherwise be expanded by user macros.
- There are some unavoidable exceptions within include files to
- define necessary library symbols; they are noted "INFRINGES ON
- USER NAME SPACE" below. */
-
-/* Identify Bison output. */
-#define YYBISON 1
-
-/* Bison version. */
-#define YYBISON_VERSION "2.3"
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 0
-
-/* Using locations. */
-#define YYLSP_NEEDED 0
-
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- kw_ABSENT = 258,
- kw_ABSTRACT_SYNTAX = 259,
- kw_ALL = 260,
- kw_APPLICATION = 261,
- kw_AUTOMATIC = 262,
- kw_BEGIN = 263,
- kw_BIT = 264,
- kw_BMPString = 265,
- kw_BOOLEAN = 266,
- kw_BY = 267,
- kw_CHARACTER = 268,
- kw_CHOICE = 269,
- kw_CLASS = 270,
- kw_COMPONENT = 271,
- kw_COMPONENTS = 272,
- kw_CONSTRAINED = 273,
- kw_CONTAINING = 274,
- kw_DEFAULT = 275,
- kw_DEFINITIONS = 276,
- kw_EMBEDDED = 277,
- kw_ENCODED = 278,
- kw_END = 279,
- kw_ENUMERATED = 280,
- kw_EXCEPT = 281,
- kw_EXPLICIT = 282,
- kw_EXPORTS = 283,
- kw_EXTENSIBILITY = 284,
- kw_EXTERNAL = 285,
- kw_FALSE = 286,
- kw_FROM = 287,
- kw_GeneralString = 288,
- kw_GeneralizedTime = 289,
- kw_GraphicString = 290,
- kw_IA5String = 291,
- kw_IDENTIFIER = 292,
- kw_IMPLICIT = 293,
- kw_IMPLIED = 294,
- kw_IMPORTS = 295,
- kw_INCLUDES = 296,
- kw_INSTANCE = 297,
- kw_INTEGER = 298,
- kw_INTERSECTION = 299,
- kw_ISO646String = 300,
- kw_MAX = 301,
- kw_MIN = 302,
- kw_MINUS_INFINITY = 303,
- kw_NULL = 304,
- kw_NumericString = 305,
- kw_OBJECT = 306,
- kw_OCTET = 307,
- kw_OF = 308,
- kw_OPTIONAL = 309,
- kw_ObjectDescriptor = 310,
- kw_PATTERN = 311,
- kw_PDV = 312,
- kw_PLUS_INFINITY = 313,
- kw_PRESENT = 314,
- kw_PRIVATE = 315,
- kw_PrintableString = 316,
- kw_REAL = 317,
- kw_RELATIVE_OID = 318,
- kw_SEQUENCE = 319,
- kw_SET = 320,
- kw_SIZE = 321,
- kw_STRING = 322,
- kw_SYNTAX = 323,
- kw_T61String = 324,
- kw_TAGS = 325,
- kw_TRUE = 326,
- kw_TYPE_IDENTIFIER = 327,
- kw_TeletexString = 328,
- kw_UNION = 329,
- kw_UNIQUE = 330,
- kw_UNIVERSAL = 331,
- kw_UTCTime = 332,
- kw_UTF8String = 333,
- kw_UniversalString = 334,
- kw_VideotexString = 335,
- kw_VisibleString = 336,
- kw_WITH = 337,
- RANGE = 338,
- EEQUAL = 339,
- ELLIPSIS = 340,
- IDENTIFIER = 341,
- referencename = 342,
- STRING = 343,
- NUMBER = 344
- };
-#endif
-/* Tokens. */
-#define kw_ABSENT 258
-#define kw_ABSTRACT_SYNTAX 259
-#define kw_ALL 260
-#define kw_APPLICATION 261
-#define kw_AUTOMATIC 262
-#define kw_BEGIN 263
-#define kw_BIT 264
-#define kw_BMPString 265
-#define kw_BOOLEAN 266
-#define kw_BY 267
-#define kw_CHARACTER 268
-#define kw_CHOICE 269
-#define kw_CLASS 270
-#define kw_COMPONENT 271
-#define kw_COMPONENTS 272
-#define kw_CONSTRAINED 273
-#define kw_CONTAINING 274
-#define kw_DEFAULT 275
-#define kw_DEFINITIONS 276
-#define kw_EMBEDDED 277
-#define kw_ENCODED 278
-#define kw_END 279
-#define kw_ENUMERATED 280
-#define kw_EXCEPT 281
-#define kw_EXPLICIT 282
-#define kw_EXPORTS 283
-#define kw_EXTENSIBILITY 284
-#define kw_EXTERNAL 285
-#define kw_FALSE 286
-#define kw_FROM 287
-#define kw_GeneralString 288
-#define kw_GeneralizedTime 289
-#define kw_GraphicString 290
-#define kw_IA5String 291
-#define kw_IDENTIFIER 292
-#define kw_IMPLICIT 293
-#define kw_IMPLIED 294
-#define kw_IMPORTS 295
-#define kw_INCLUDES 296
-#define kw_INSTANCE 297
-#define kw_INTEGER 298
-#define kw_INTERSECTION 299
-#define kw_ISO646String 300
-#define kw_MAX 301
-#define kw_MIN 302
-#define kw_MINUS_INFINITY 303
-#define kw_NULL 304
-#define kw_NumericString 305
-#define kw_OBJECT 306
-#define kw_OCTET 307
-#define kw_OF 308
-#define kw_OPTIONAL 309
-#define kw_ObjectDescriptor 310
-#define kw_PATTERN 311
-#define kw_PDV 312
-#define kw_PLUS_INFINITY 313
-#define kw_PRESENT 314
-#define kw_PRIVATE 315
-#define kw_PrintableString 316
-#define kw_REAL 317
-#define kw_RELATIVE_OID 318
-#define kw_SEQUENCE 319
-#define kw_SET 320
-#define kw_SIZE 321
-#define kw_STRING 322
-#define kw_SYNTAX 323
-#define kw_T61String 324
-#define kw_TAGS 325
-#define kw_TRUE 326
-#define kw_TYPE_IDENTIFIER 327
-#define kw_TeletexString 328
-#define kw_UNION 329
-#define kw_UNIQUE 330
-#define kw_UNIVERSAL 331
-#define kw_UTCTime 332
-#define kw_UTF8String 333
-#define kw_UniversalString 334
-#define kw_VideotexString 335
-#define kw_VisibleString 336
-#define kw_WITH 337
-#define RANGE 338
-#define EEQUAL 339
-#define ELLIPSIS 340
-#define IDENTIFIER 341
-#define referencename 342
-#define STRING 343
-#define NUMBER 344
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 36 "parse.y"
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "symbol.h"
-#include "lex.h"
-#include "gen_locl.h"
-#include "der.h"
-
-RCSID("$Id: parse.c,v 1.1.1.1 2012-07-21 15:09:08 laffer1 Exp $");
-
-static Type *new_type (Typetype t);
-static struct constraint_spec *new_constraint_spec(enum ctype);
-static Type *new_tag(int tagclass, int tagvalue, int tagenv, Type *oldtype);
-void yyerror (const char *);
-static struct objid *new_objid(const char *label, int value);
-static void add_oid_to_tail(struct objid *, struct objid *);
-static void fix_labels(Symbol *s);
-
-struct string_list {
- char *string;
- struct string_list *next;
-};
-
-
-
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 1
-#endif
-
-/* Enabling verbose error messages. */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
-/* Enabling the token table. */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 0
-#endif
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 65 "parse.y"
-{
- int constant;
- struct value *value;
- struct range *range;
- char *name;
- Type *type;
- Member *member;
- struct objid *objid;
- char *defval;
- struct string_list *sl;
- struct tagtype tag;
- struct memhead *members;
- struct constraint_spec *constraint_spec;
-}
-/* Line 193 of yacc.c. */
-#line 318 "parse.c"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-
-
-/* Copy the second part of user declarations. */
-
-
-/* Line 216 of yacc.c. */
-#line 331 "parse.c"
-
-#ifdef short
-# undef short
-#endif
-
-#ifdef YYTYPE_UINT8
-typedef YYTYPE_UINT8 yytype_uint8;
-#else
-typedef unsigned char yytype_uint8;
-#endif
-
-#ifdef YYTYPE_INT8
-typedef YYTYPE_INT8 yytype_int8;
-#elif (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-typedef signed char yytype_int8;
-#else
-typedef short int yytype_int8;
-#endif
-
-#ifdef YYTYPE_UINT16
-typedef YYTYPE_UINT16 yytype_uint16;
-#else
-typedef unsigned short int yytype_uint16;
-#endif
-
-#ifdef YYTYPE_INT16
-typedef YYTYPE_INT16 yytype_int16;
-#else
-typedef short int yytype_int16;
-#endif
-
-#ifndef YYSIZE_T
-# ifdef __SIZE_TYPE__
-# define YYSIZE_T __SIZE_TYPE__
-# elif defined size_t
-# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# else
-# define YYSIZE_T unsigned int
-# endif
-#endif
-
-#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
-
-#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
-# if ENABLE_NLS
-# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-# define YY_(msgid) dgettext ("bison-runtime", msgid)
-# endif
-# endif
-# ifndef YY_
-# define YY_(msgid) msgid
-# endif
-#endif
-
-/* Suppress unused-variable warnings by "using" E. */
-#if ! defined lint || defined __GNUC__
-# define YYUSE(e) ((void) (e))
-#else
-# define YYUSE(e) /* empty */
-#endif
-
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(n) (n)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int i)
-#else
-static int
-YYID (i)
- int i;
-#endif
-{
- return i;
-}
-#endif
-
-#if ! defined yyoverflow || YYERROR_VERBOSE
-
-/* The parser invokes alloca or malloc; define the necessary symbols. */
-
-# ifdef YYSTACK_USE_ALLOCA
-# if YYSTACK_USE_ALLOCA
-# ifdef __GNUC__
-# define YYSTACK_ALLOC __builtin_alloca
-# elif defined __BUILTIN_VA_ARG_INCR
-# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
-# elif defined _AIX
-# define YYSTACK_ALLOC __alloca
-# elif defined _MSC_VER
-# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
-# define alloca _alloca
-# else
-# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef _STDLIB_H
-# define _STDLIB_H 1
-# endif
-# endif
-# endif
-# endif
-# endif
-
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
-# ifndef YYSTACK_ALLOC_MAXIMUM
- /* The OS might guarantee only one guard page at the bottom of the stack,
- and a page size can be as small as 4096 bytes. So we cannot safely
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
- to allow for a few compiler-allocated temporary stack slots. */
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
-# endif
-# else
-# define YYSTACK_ALLOC YYMALLOC
-# define YYSTACK_FREE YYFREE
-# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
-# endif
-# if (defined __cplusplus && ! defined _STDLIB_H \
- && ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef _STDLIB_H
-# define _STDLIB_H 1
-# endif
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# endif
-#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-
-
-#if (! defined yyoverflow \
- && (! defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
-
-/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
- yytype_int16 yyss;
- YYSTYPE yyvs;
- };
-
-/* The size of the maximum gap between one aligned stack and the next. */
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
-
-/* The size of an array large to enough to hold all stacks, each with
- N elements. */
-# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
- + YYSTACK_GAP_MAXIMUM)
-
-/* Copy COUNT objects from FROM to TO. The source and destination do
- not overlap. */
-# ifndef YYCOPY
-# if defined __GNUC__ && 1 < __GNUC__
-# define YYCOPY(To, From, Count) \
- __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
-# else
-# define YYCOPY(To, From, Count) \
- do \
- { \
- YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (To)[yyi] = (From)[yyi]; \
- } \
- while (YYID (0))
-# endif
-# endif
-
-/* Relocate STACK from its old location to the new one. The
- local variables YYSIZE and YYSTACKSIZE give the old and new number of
- elements in the stack, and YYPTR gives the new location of the
- stack. Advance YYPTR to a properly aligned location for the next
- stack. */
-# define YYSTACK_RELOCATE(Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
-
-#endif
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 6
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 195
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 98
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 68
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 136
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 214
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 344
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const yytype_uint8 yytranslate[] =
-{
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 92, 93, 2, 2, 91, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 90,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 96, 2, 97, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 94, 2, 95, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
- 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
- 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
- 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
- 85, 86, 87, 88, 89
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 13, 16, 19, 22, 23, 26, 27,
- 30, 31, 35, 36, 38, 39, 41, 44, 49, 51,
- 54, 56, 58, 62, 64, 68, 70, 72, 74, 76,
- 78, 80, 82, 84, 86, 88, 90, 92, 94, 96,
- 98, 100, 102, 104, 110, 116, 122, 126, 128, 131,
- 136, 138, 142, 146, 151, 156, 158, 161, 167, 170,
- 174, 176, 177, 180, 185, 189, 194, 199, 203, 207,
- 212, 214, 216, 218, 220, 222, 225, 229, 231, 233,
- 235, 238, 242, 248, 253, 257, 262, 263, 265, 267,
- 269, 270, 272, 274, 279, 281, 283, 285, 287, 289,
- 291, 293, 295, 297, 301, 305, 308, 310, 313, 317,
- 319, 323, 328, 330, 331, 335, 336, 339, 344, 346,
- 348, 350, 352, 354, 356, 358, 360, 362, 364, 366,
- 368, 370, 372, 374, 376, 378, 380
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int16 yyrhs[] =
-{
- 99, 0, -1, 86, 151, 21, 100, 101, 84, 8,
- 102, 24, -1, 27, 70, -1, 38, 70, -1, 7,
- 70, -1, -1, 29, 39, -1, -1, 103, 107, -1,
- -1, 40, 104, 90, -1, -1, 105, -1, -1, 106,
- -1, 105, 106, -1, 109, 32, 86, 151, -1, 108,
- -1, 108, 107, -1, 110, -1, 143, -1, 86, 91,
- 109, -1, 86, -1, 86, 84, 111, -1, 112, -1,
- 130, -1, 133, -1, 120, -1, 113, -1, 144, -1,
- 129, -1, 118, -1, 115, -1, 123, -1, 121, -1,
- 122, -1, 125, -1, 126, -1, 127, -1, 128, -1,
- 139, -1, 11, -1, 92, 155, 83, 155, 93, -1,
- 92, 155, 83, 46, 93, -1, 92, 47, 83, 155,
- 93, -1, 92, 155, 93, -1, 43, -1, 43, 114,
- -1, 43, 94, 116, 95, -1, 117, -1, 116, 91,
- 117, -1, 116, 91, 85, -1, 86, 92, 163, 93,
- -1, 25, 94, 119, 95, -1, 116, -1, 9, 67,
- -1, 9, 67, 94, 149, 95, -1, 51, 37, -1,
- 52, 67, 124, -1, 49, -1, -1, 66, 114, -1,
- 64, 94, 146, 95, -1, 64, 94, 95, -1, 64,
- 124, 53, 111, -1, 65, 94, 146, 95, -1, 65,
- 94, 95, -1, 65, 53, 111, -1, 14, 94, 146,
- 95, -1, 131, -1, 132, -1, 86, -1, 34, -1,
- 77, -1, 111, 134, -1, 92, 135, 93, -1, 136,
- -1, 137, -1, 138, -1, 19, 111, -1, 23, 12,
- 155, -1, 19, 111, 23, 12, 155, -1, 18, 12,
- 94, 95, -1, 140, 142, 111, -1, 96, 141, 89,
- 97, -1, -1, 76, -1, 6, -1, 60, -1, -1,
- 27, -1, 38, -1, 86, 111, 84, 155, -1, 145,
- -1, 33, -1, 78, -1, 61, -1, 81, -1, 36,
- -1, 10, -1, 79, -1, 148, -1, 146, 91, 148,
- -1, 146, 91, 85, -1, 86, 111, -1, 147, -1,
- 147, 54, -1, 147, 20, 155, -1, 150, -1, 149,
- 91, 150, -1, 86, 92, 89, 93, -1, 152, -1,
- -1, 94, 153, 95, -1, -1, 154, 153, -1, 86,
- 92, 89, 93, -1, 86, -1, 89, -1, 156, -1,
- 157, -1, 161, -1, 160, -1, 162, -1, 165, -1,
- 164, -1, 158, -1, 159, -1, 86, -1, 88, -1,
- 71, -1, 31, -1, 163, -1, 89, -1, 49, -1,
- 152, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
-{
- 0, 233, 233, 240, 241, 243, 245, 248, 250, 253,
- 254, 257, 258, 261, 262, 265, 266, 269, 280, 281,
- 284, 285, 288, 294, 302, 312, 313, 314, 317, 318,
- 319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
- 329, 330, 333, 340, 350, 358, 366, 377, 382, 388,
- 396, 402, 407, 411, 424, 432, 435, 442, 450, 456,
- 465, 473, 474, 479, 485, 493, 502, 508, 516, 524,
- 531, 532, 535, 546, 551, 558, 574, 580, 583, 584,
- 587, 593, 601, 611, 617, 630, 639, 642, 646, 650,
- 657, 660, 664, 671, 682, 685, 690, 695, 700, 705,
- 710, 715, 723, 729, 734, 745, 756, 762, 768, 776,
- 782, 789, 802, 803, 806, 813, 816, 827, 831, 842,
- 848, 849, 852, 853, 854, 855, 856, 859, 862, 865,
- 876, 884, 890, 898, 906, 909, 914
-};
-#endif
-
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
-/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] =
-{
- "$end", "error", "$undefined", "kw_ABSENT", "kw_ABSTRACT_SYNTAX",
- "kw_ALL", "kw_APPLICATION", "kw_AUTOMATIC", "kw_BEGIN", "kw_BIT",
- "kw_BMPString", "kw_BOOLEAN", "kw_BY", "kw_CHARACTER", "kw_CHOICE",
- "kw_CLASS", "kw_COMPONENT", "kw_COMPONENTS", "kw_CONSTRAINED",
- "kw_CONTAINING", "kw_DEFAULT", "kw_DEFINITIONS", "kw_EMBEDDED",
- "kw_ENCODED", "kw_END", "kw_ENUMERATED", "kw_EXCEPT", "kw_EXPLICIT",
- "kw_EXPORTS", "kw_EXTENSIBILITY", "kw_EXTERNAL", "kw_FALSE", "kw_FROM",
- "kw_GeneralString", "kw_GeneralizedTime", "kw_GraphicString",
- "kw_IA5String", "kw_IDENTIFIER", "kw_IMPLICIT", "kw_IMPLIED",
- "kw_IMPORTS", "kw_INCLUDES", "kw_INSTANCE", "kw_INTEGER",
- "kw_INTERSECTION", "kw_ISO646String", "kw_MAX", "kw_MIN",
- "kw_MINUS_INFINITY", "kw_NULL", "kw_NumericString", "kw_OBJECT",
- "kw_OCTET", "kw_OF", "kw_OPTIONAL", "kw_ObjectDescriptor", "kw_PATTERN",
- "kw_PDV", "kw_PLUS_INFINITY", "kw_PRESENT", "kw_PRIVATE",
- "kw_PrintableString", "kw_REAL", "kw_RELATIVE_OID", "kw_SEQUENCE",
- "kw_SET", "kw_SIZE", "kw_STRING", "kw_SYNTAX", "kw_T61String", "kw_TAGS",
- "kw_TRUE", "kw_TYPE_IDENTIFIER", "kw_TeletexString", "kw_UNION",
- "kw_UNIQUE", "kw_UNIVERSAL", "kw_UTCTime", "kw_UTF8String",
- "kw_UniversalString", "kw_VideotexString", "kw_VisibleString", "kw_WITH",
- "RANGE", "EEQUAL", "ELLIPSIS", "IDENTIFIER", "referencename", "STRING",
- "NUMBER", "';'", "','", "'('", "')'", "'{'", "'}'", "'['", "']'",
- "$accept", "ModuleDefinition", "TagDefault", "ExtensionDefault",
- "ModuleBody", "Imports", "SymbolsImported", "SymbolsFromModuleList",
- "SymbolsFromModule", "AssignmentList", "Assignment", "referencenames",
- "TypeAssignment", "Type", "BuiltinType", "BooleanType", "range",
- "IntegerType", "NamedNumberList", "NamedNumber", "EnumeratedType",
- "Enumerations", "BitStringType", "ObjectIdentifierType",
- "OctetStringType", "NullType", "size", "SequenceType", "SequenceOfType",
- "SetType", "SetOfType", "ChoiceType", "ReferencedType", "DefinedType",
- "UsefulType", "ConstrainedType", "Constraint", "ConstraintSpec",
- "GeneralConstraint", "ContentsConstraint", "UserDefinedConstraint",
- "TaggedType", "Tag", "Class", "tagenv", "ValueAssignment",
- "CharacterStringType", "RestrictedCharactedStringType",
- "ComponentTypeList", "NamedType", "ComponentType", "NamedBitList",
- "NamedBit", "objid_opt", "objid", "objid_list", "objid_element", "Value",
- "BuiltinValue", "ReferencedValue", "DefinedValue", "Valuereference",
- "CharacterStringValue", "BooleanValue", "IntegerValue", "SignedNumber",
- "NullValue", "ObjectIdentifierValue", 0
-};
-#endif
-
-# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
-static const yytype_uint16 yytoknum[] =
-{
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
- 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
- 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
- 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
- 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
- 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
- 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
- 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
- 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
- 59, 44, 40, 41, 123, 125, 91, 93
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 98, 99, 100, 100, 100, 100, 101, 101, 102,
- 102, 103, 103, 104, 104, 105, 105, 106, 107, 107,
- 108, 108, 109, 109, 110, 111, 111, 111, 112, 112,
- 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 113, 114, 114, 114, 114, 115, 115, 115,
- 116, 116, 116, 117, 118, 119, 120, 120, 121, 122,
- 123, 124, 124, 125, 125, 126, 127, 127, 128, 129,
- 130, 130, 131, 132, 132, 133, 134, 135, 136, 136,
- 137, 137, 137, 138, 139, 140, 141, 141, 141, 141,
- 142, 142, 142, 143, 144, 145, 145, 145, 145, 145,
- 145, 145, 146, 146, 146, 147, 148, 148, 148, 149,
- 149, 150, 151, 151, 152, 153, 153, 154, 154, 154,
- 155, 155, 156, 156, 156, 156, 156, 157, 158, 159,
- 160, 161, 161, 162, 163, 164, 165
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 9, 2, 2, 2, 0, 2, 0, 2,
- 0, 3, 0, 1, 0, 1, 2, 4, 1, 2,
- 1, 1, 3, 1, 3, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 5, 5, 5, 3, 1, 2, 4,
- 1, 3, 3, 4, 4, 1, 2, 5, 2, 3,
- 1, 0, 2, 4, 3, 4, 4, 3, 3, 4,
- 1, 1, 1, 1, 1, 2, 3, 1, 1, 1,
- 2, 3, 5, 4, 3, 4, 0, 1, 1, 1,
- 0, 1, 1, 4, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 3, 3, 2, 1, 2, 3, 1,
- 3, 4, 1, 0, 3, 0, 2, 4, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1
-};
-
-/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
- STATE-NUM when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
-static const yytype_uint8 yydefact[] =
-{
- 0, 113, 0, 115, 0, 112, 1, 118, 119, 0,
- 115, 6, 0, 114, 116, 0, 0, 0, 8, 0,
- 5, 3, 4, 0, 0, 117, 7, 0, 10, 14,
- 0, 0, 23, 0, 13, 15, 0, 2, 0, 9,
- 18, 20, 21, 0, 11, 16, 0, 0, 100, 42,
- 0, 0, 95, 73, 99, 47, 60, 0, 0, 97,
- 61, 0, 74, 96, 101, 98, 0, 72, 86, 0,
- 25, 29, 33, 32, 28, 35, 36, 34, 37, 38,
- 39, 40, 31, 26, 70, 71, 27, 41, 90, 30,
- 94, 19, 22, 113, 56, 0, 0, 0, 0, 48,
- 58, 61, 0, 0, 0, 0, 0, 24, 88, 89,
- 87, 0, 0, 0, 75, 91, 92, 0, 17, 0,
- 0, 0, 106, 102, 0, 55, 50, 0, 132, 0,
- 135, 131, 129, 130, 134, 136, 0, 120, 121, 127,
- 128, 123, 122, 124, 133, 126, 125, 0, 59, 62,
- 64, 0, 0, 68, 67, 0, 0, 93, 0, 0,
- 0, 0, 77, 78, 79, 84, 0, 0, 109, 105,
- 0, 69, 0, 107, 0, 0, 54, 0, 0, 46,
- 49, 63, 65, 66, 85, 0, 80, 0, 76, 0,
- 0, 57, 104, 103, 108, 0, 52, 51, 0, 0,
- 0, 0, 0, 81, 0, 110, 53, 45, 44, 43,
- 83, 0, 111, 82
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
-{
- -1, 2, 18, 24, 30, 31, 33, 34, 35, 39,
- 40, 36, 41, 69, 70, 71, 99, 72, 125, 126,
- 73, 127, 74, 75, 76, 77, 104, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 114, 161, 162, 163,
- 164, 87, 88, 111, 117, 42, 89, 90, 121, 122,
- 123, 167, 168, 4, 135, 9, 10, 136, 137, 138,
- 139, 140, 141, 142, 143, 144, 145, 146
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -113
-static const yytype_int16 yypact[] =
-{
- -74, -67, 38, -69, 23, -113, -113, -44, -113, -41,
- -69, 4, -26, -113, -113, -3, 1, 10, 52, -10,
- -113, -113, -113, 45, 13, -113, -113, 77, -35, 15,
- 64, 19, 17, 20, 15, -113, 85, -113, 25, -113,
- 19, -113, -113, 15, -113, -113, 27, 47, -113, -113,
- 26, 29, -113, -113, -113, -30, -113, 89, 61, -113,
- -57, -47, -113, -113, -113, -113, 82, -113, -4, -68,
- -113, -113, -113, -113, -113, -113, -113, -113, -113, -113,
- -113, -113, -113, -113, -113, -113, -113, -113, -17, -113,
- -113, -113, -113, -67, 35, 33, 46, 51, 46, -113,
- -113, 69, 44, -73, 88, 82, -72, 56, -113, -113,
- -113, 49, 93, 7, -113, -113, -113, 82, -113, 58,
- 82, -76, -13, -113, 57, 59, -113, 60, -113, 68,
- -113, -113, -113, -113, -113, -113, -75, -113, -113, -113,
- -113, -113, -113, -113, -113, -113, -113, -63, -113, -113,
- -113, -62, 82, 56, -113, -46, 65, -113, 141, 82,
- 142, 63, -113, -113, -113, 56, 66, -38, -113, 56,
- -16, -113, 93, -113, 76, -7, -113, 93, 81, -113,
- -113, -113, 56, -113, -113, 72, -19, 93, -113, 83,
- 58, -113, -113, -113, -113, 78, -113, -113, 80, 84,
- 87, 62, 162, -113, 90, -113, -113, -113, -113, -113,
- -113, 93, -113, -113
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] =
-{
- -113, -113, -113, -113, -113, -113, -113, -113, 150, 136,
- -113, 143, -113, -65, -113, -113, 86, -113, 91, 16,
- -113, -113, -113, -113, -113, -113, 92, -113, -113, -113,
- -113, -113, -113, -113, -113, -113, -113, -113, -113, -113,
- -113, -113, -113, -113, -113, -113, -113, -113, -60, -113,
- 22, -113, -5, 97, 2, 184, -113, -112, -113, -113,
- -113, -113, -113, -113, -113, 21, -113, -113
-};
-
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If zero, do what YYDEFACT says.
- If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -13
-static const yytype_int16 yytable[] =
-{
- 157, 107, 108, 5, 202, 29, 105, 172, 178, 102,
- 115, 15, 1, 120, 120, 170, 112, 7, 179, 171,
- 8, 116, 150, 154, 113, 158, 159, 3, 175, 170,
- 160, 16, 180, 181, 47, 48, 49, 103, 6, 50,
- 153, 173, 17, 151, 11, 170, 155, 106, 12, 183,
- 51, -12, 165, 190, 13, 169, 109, 191, 52, 53,
- 194, 54, 97, 19, 98, 198, 200, 20, 55, 192,
- 120, 21, 110, 113, 56, 203, 57, 58, 196, 124,
- 22, 23, 128, 25, 26, 28, 59, 182, 37, 60,
- 61, 47, 48, 49, 186, 5, 50, 27, 129, 213,
- 130, 32, 62, 63, 64, 38, 65, 51, 43, 66,
- 44, 67, 128, 93, 94, 52, 53, 46, 54, 120,
- 95, 68, 131, 96, 128, 55, 100, 199, 101, 119,
- 130, 56, 124, 57, 58, 102, 97, 132, 156, 133,
- 134, 152, 130, 59, 166, 3, 60, 61, 113, 174,
- 175, 177, 131, 185, 187, 176, 188, 210, 189, 62,
- 63, 64, 184, 65, 131, 134, 201, 132, 67, 133,
- 134, 206, 204, 207, 211, 3, 91, 208, 68, 132,
- 209, 133, 134, 212, 45, 205, 92, 3, 149, 147,
- 118, 197, 193, 148, 14, 195
-};
-
-static const yytype_uint8 yycheck[] =
-{
- 112, 66, 6, 1, 23, 40, 53, 20, 83, 66,
- 27, 7, 86, 86, 86, 91, 84, 86, 93, 95,
- 89, 38, 95, 95, 92, 18, 19, 94, 91, 91,
- 23, 27, 95, 95, 9, 10, 11, 94, 0, 14,
- 105, 54, 38, 103, 21, 91, 106, 94, 92, 95,
- 25, 86, 117, 91, 95, 120, 60, 95, 33, 34,
- 172, 36, 92, 89, 94, 177, 178, 70, 43, 85,
- 86, 70, 76, 92, 49, 187, 51, 52, 85, 86,
- 70, 29, 31, 93, 39, 8, 61, 152, 24, 64,
- 65, 9, 10, 11, 159, 93, 14, 84, 47, 211,
- 49, 86, 77, 78, 79, 86, 81, 25, 91, 84,
- 90, 86, 31, 86, 67, 33, 34, 32, 36, 86,
- 94, 96, 71, 94, 31, 43, 37, 46, 67, 94,
- 49, 49, 86, 51, 52, 66, 92, 86, 89, 88,
- 89, 53, 49, 61, 86, 94, 64, 65, 92, 92,
- 91, 83, 71, 12, 12, 95, 93, 95, 92, 77,
- 78, 79, 97, 81, 71, 89, 94, 86, 86, 88,
- 89, 93, 89, 93, 12, 94, 40, 93, 96, 86,
- 93, 88, 89, 93, 34, 190, 43, 94, 102, 98,
- 93, 175, 170, 101, 10, 174
-};
-
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
-static const yytype_uint8 yystos[] =
-{
- 0, 86, 99, 94, 151, 152, 0, 86, 89, 153,
- 154, 21, 92, 95, 153, 7, 27, 38, 100, 89,
- 70, 70, 70, 29, 101, 93, 39, 84, 8, 40,
- 102, 103, 86, 104, 105, 106, 109, 24, 86, 107,
- 108, 110, 143, 91, 90, 106, 32, 9, 10, 11,
- 14, 25, 33, 34, 36, 43, 49, 51, 52, 61,
- 64, 65, 77, 78, 79, 81, 84, 86, 96, 111,
- 112, 113, 115, 118, 120, 121, 122, 123, 125, 126,
- 127, 128, 129, 130, 131, 132, 133, 139, 140, 144,
- 145, 107, 109, 86, 67, 94, 94, 92, 94, 114,
- 37, 67, 66, 94, 124, 53, 94, 111, 6, 60,
- 76, 141, 84, 92, 134, 27, 38, 142, 151, 94,
- 86, 146, 147, 148, 86, 116, 117, 119, 31, 47,
- 49, 71, 86, 88, 89, 152, 155, 156, 157, 158,
- 159, 160, 161, 162, 163, 164, 165, 116, 124, 114,
- 95, 146, 53, 111, 95, 146, 89, 155, 18, 19,
- 23, 135, 136, 137, 138, 111, 86, 149, 150, 111,
- 91, 95, 20, 54, 92, 91, 95, 83, 83, 93,
- 95, 95, 111, 95, 97, 12, 111, 12, 93, 92,
- 91, 95, 85, 148, 155, 163, 85, 117, 155, 46,
- 155, 94, 23, 155, 89, 150, 93, 93, 93, 93,
- 95, 12, 93, 155
-};
-
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
-
-#define YYFAIL goto yyerrlab
-
-#define YYRECOVERING() (!!yyerrstatus)
-
-#define YYBACKUP(Token, Value) \
-do \
- if (yychar == YYEMPTY && yylen == 1) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- yytoken = YYTRANSLATE (yychar); \
- YYPOPSTACK (1); \
- goto yybackup; \
- } \
- else \
- { \
- yyerror (YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
-
-
-#define YYTERROR 1
-#define YYERRCODE 256
-
-
-/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
- If N is 0, then set CURRENT to the empty location which ends
- the previous symbol: RHS[0] (always defined). */
-
-#define YYRHSLOC(Rhs, K) ((Rhs)[K])
-#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (YYID (N)) \
- { \
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
- } \
- else \
- { \
- (Current).first_line = (Current).last_line = \
- YYRHSLOC (Rhs, 0).last_line; \
- (Current).first_column = (Current).last_column = \
- YYRHSLOC (Rhs, 0).last_column; \
- } \
- while (YYID (0))
-#endif
-
-
-/* YY_LOCATION_PRINT -- Print the location on the stream.
- This macro was not mandated originally: define only if we know
- we won't break user code: when these are the locations we know. */
-
-#ifndef YY_LOCATION_PRINT
-# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
-# define YY_LOCATION_PRINT(File, Loc) \
- fprintf (File, "%d.%d-%d.%d", \
- (Loc).first_line, (Loc).first_column, \
- (Loc).last_line, (Loc).last_column)
-# else
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-# endif
-#endif
-
-
-/* YYLEX -- calling `yylex' with the right arguments. */
-
-#ifdef YYLEX_PARAM
-# define YYLEX yylex (YYLEX_PARAM)
-#else
-# define YYLEX yylex ()
-#endif
-
-/* Enable debugging if requested. */
-#if YYDEBUG
-
-# ifndef YYFPRINTF
-# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
-# define YYFPRINTF fprintf
-# endif
-
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
-
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
-{
- if (!yyvaluep)
- return;
-# ifdef YYPRINT
- if (yytype < YYNTOKENS)
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# else
- YYUSE (yyoutput);
-# endif
- switch (yytype)
- {
- default:
- break;
- }
-}
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
-{
- if (yytype < YYNTOKENS)
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
- else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
-
- yy_symbol_value_print (yyoutput, yytype, yyvaluep);
- YYFPRINTF (yyoutput, ")");
-}
-
-/*------------------------------------------------------------------.
-| yy_stack_print -- Print the state stack from its BOTTOM up to its |
-| TOP (included). |
-`------------------------------------------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
-#else
-static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
-#endif
-{
- YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
- YYFPRINTF (stderr, "\n");
-}
-
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (YYID (0))
-
-
-/*------------------------------------------------.
-| Report that the YYRULE is going to be reduced. |
-`------------------------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
-#else
-static void
-yy_reduce_print (yyvsp, yyrule)
- YYSTYPE *yyvsp;
- int yyrule;
-#endif
-{
- int yynrhs = yyr2[yyrule];
- int yyi;
- unsigned long int yylno = yyrline[yyrule];
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
- yyrule - 1, yylno);
- /* The symbols being reduced. */
- for (yyi = 0; yyi < yynrhs; yyi++)
- {
- fprintf (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
- fprintf (stderr, "\n");
- }
-}
-
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyvsp, Rule); \
-} while (YYID (0))
-
-/* Nonzero means print parse trace. It is left uninitialized so that
- multiple parsers can coexist. */
-int yydebug;
-#else /* !YYDEBUG */
-# define YYDPRINTF(Args)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
-# define YY_STACK_PRINT(Bottom, Top)
-# define YY_REDUCE_PRINT(Rule)
-#endif /* !YYDEBUG */
-
-
-/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
-# define YYINITDEPTH 200
-#endif
-
-/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
- if the built-in stack extension method is used).
-
- Do not make this value too large; the results are undefined if
- YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
- evaluated with infinite-precision integer arithmetic. */
-
-#ifndef YYMAXDEPTH
-# define YYMAXDEPTH 10000
-#endif
-
-
-
-#if YYERROR_VERBOSE
-
-# ifndef yystrlen
-# if defined __GLIBC__ && defined _STRING_H
-# define yystrlen strlen
-# else
-/* Return the length of YYSTR. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static YYSIZE_T
-yystrlen (const char *yystr)
-#else
-static YYSIZE_T
-yystrlen (yystr)
- const char *yystr;
-#endif
-{
- YYSIZE_T yylen;
- for (yylen = 0; yystr[yylen]; yylen++)
- continue;
- return yylen;
-}
-# endif
-# endif
-
-# ifndef yystpcpy
-# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-# define yystpcpy stpcpy
-# else
-/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
- YYDEST. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static char *
-yystpcpy (char *yydest, const char *yysrc)
-#else
-static char *
-yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-#endif
-{
- char *yyd = yydest;
- const char *yys = yysrc;
-
- while ((*yyd++ = *yys++) != '\0')
- continue;
-
- return yyd - 1;
-}
-# endif
-# endif
-
-# ifndef yytnamerr
-/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
- quotes and backslashes, so that it's suitable for yyerror. The
- heuristic is that double-quoting is unnecessary unless the string
- contains an apostrophe, a comma, or backslash (other than
- backslash-backslash). YYSTR is taken from yytname. If YYRES is
- null, do not copy; instead, return the length of what the result
- would have been. */
-static YYSIZE_T
-yytnamerr (char *yyres, const char *yystr)
-{
- if (*yystr == '"')
- {
- YYSIZE_T yyn = 0;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
- do_not_strip_quotes: ;
- }
-
- if (! yyres)
- return yystrlen (yystr);
-
- return yystpcpy (yyres, yystr) - yyres;
-}
-# endif
-
-/* Copy into YYRESULT an error message about the unexpected token
- YYCHAR while in state YYSTATE. Return the number of bytes copied,
- including the terminating null byte. If YYRESULT is null, do not
- copy anything; just return the number of bytes that would be
- copied. As a special case, return 0 if an ordinary "syntax error"
- message will do. Return YYSIZE_MAXIMUM if overflow occurs during
- size calculation. */
-static YYSIZE_T
-yysyntax_error (char *yyresult, int yystate, int yychar)
-{
- int yyn = yypact[yystate];
-
- if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
- return 0;
- else
- {
- int yytype = YYTRANSLATE (yychar);
- YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
- YYSIZE_T yysize = yysize0;
- YYSIZE_T yysize1;
- int yysize_overflow = 0;
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
- int yyx;
-
-# if 0
- /* This is so xgettext sees the translatable formats that are
- constructed on the fly. */
- YY_("syntax error, unexpected %s");
- YY_("syntax error, unexpected %s, expecting %s");
- YY_("syntax error, unexpected %s, expecting %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
-# endif
- char *yyfmt;
- char const *yyf;
- static char const yyunexpected[] = "syntax error, unexpected %s";
- static char const yyexpecting[] = ", expecting %s";
- static char const yyor[] = " or %s";
- char yyformat[sizeof yyunexpected
- + sizeof yyexpecting - 1
- + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
- * (sizeof yyor - 1))];
- char const *yyprefix = yyexpecting;
-
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
-
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yycount = 1;
-
- yyarg[0] = yytname[yytype];
- yyfmt = yystpcpy (yyformat, yyunexpected);
-
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- yysize = yysize0;
- yyformat[sizeof yyunexpected - 1] = '\0';
- break;
- }
- yyarg[yycount++] = yytname[yyx];
- yysize1 = yysize + yytnamerr (0, yytname[yyx]);
- yysize_overflow |= (yysize1 < yysize);
- yysize = yysize1;
- yyfmt = yystpcpy (yyfmt, yyprefix);
- yyprefix = yyor;
- }
-
- yyf = YY_(yyformat);
- yysize1 = yysize + yystrlen (yyf);
- yysize_overflow |= (yysize1 < yysize);
- yysize = yysize1;
-
- if (yysize_overflow)
- return YYSIZE_MAXIMUM;
-
- if (yyresult)
- {
- /* Avoid sprintf, as that infringes on the user's name space.
- Don't have undefined behavior even if the translation
- produced a string with the wrong number of "%s"s. */
- char *yyp = yyresult;
- int yyi = 0;
- while ((*yyp = *yyf) != '\0')
- {
- if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
- {
- yyp += yytnamerr (yyp, yyarg[yyi++]);
- yyf += 2;
- }
- else
- {
- yyp++;
- yyf++;
- }
- }
- }
- return yysize;
- }
-}
-#endif /* YYERROR_VERBOSE */
-
-
-/*-----------------------------------------------.
-| Release the memory associated to this symbol. |
-`-----------------------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
-#else
-static void
-yydestruct (yymsg, yytype, yyvaluep)
- const char *yymsg;
- int yytype;
- YYSTYPE *yyvaluep;
-#endif
-{
- YYUSE (yyvaluep);
-
- if (!yymsg)
- yymsg = "Deleting";
- YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
-
- switch (yytype)
- {
-
- default:
- break;
- }
-}
-
-
-/* Prevent warnings from -Wmissing-prototypes. */
-
-#ifdef YYPARSE_PARAM
-#if defined __STDC__ || defined __cplusplus
-int yyparse (void *YYPARSE_PARAM);
-#else
-int yyparse ();
-#endif
-#else /* ! YYPARSE_PARAM */
-#if defined __STDC__ || defined __cplusplus
-int yyparse (void);
-#else
-int yyparse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
-
-
-
-/* The look-ahead symbol. */
-int yychar;
-
-/* The semantic value of the look-ahead symbol. */
-YYSTYPE yylval;
-
-/* Number of syntax errors so far. */
-int yynerrs;
-
-
-
-/*----------.
-| yyparse. |
-`----------*/
-
-#ifdef YYPARSE_PARAM
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
-#else
-int
-yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-#endif
-#else /* ! YYPARSE_PARAM */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void)
-#else
-int
-yyparse ()
-
-#endif
-#endif
-{
-
- int yystate;
- int yyn;
- int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
- int yytoken = 0;
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
-
-
-
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- YYSIZE_T yystacksize = YYINITDEPTH;
-
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-
- /* The number of symbols on the RHS of the reduced rule.
- Keep to zero when no symbol should be popped. */
- int yylen = 0;
-
- YYDPRINTF ((stderr, "Starting parse\n"));
-
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
-
- yyssp = yyss;
- yyvsp = yyvs;
-
- goto yysetstate;
-
-/*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate. |
-`------------------------------------------------------------*/
- yynewstate:
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. So pushing a state here evens the stacks. */
- yyssp++;
-
- yysetstate:
- *yyssp = yystate;
-
- if (yyss + yystacksize - 1 <= yyssp)
- {
- /* Get the current used size of the three stacks, in elements. */
- YYSIZE_T yysize = yyssp - yyss + 1;
-
-#ifdef yyoverflow
- {
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
-
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
- }
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
-# else
- /* Extend the stack our own way. */
- if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
- yystacksize *= 2;
- if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
-
- {
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss);
- YYSTACK_RELOCATE (yyvs);
-
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
- }
-# endif
-#endif /* no yyoverflow */
-
- yyssp = yyss + yysize - 1;
- yyvsp = yyvs + yysize - 1;
-
-
- YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
-
- if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
- }
-
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
-
- goto yybackup;
-
-/*-----------.
-| yybackup. |
-`-----------*/
-yybackup:
-
- /* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
-
- /* First try to decide what to do without reference to look-ahead token. */
- yyn = yypact[yystate];
- if (yyn == YYPACT_NINF)
- goto yydefault;
-
- /* Not known => get a look-ahead token if don't already have one. */
-
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
- if (yychar == YYEMPTY)
- {
- YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
- }
-
- if (yychar <= YYEOF)
- {
- yychar = yytoken = YYEOF;
- YYDPRINTF ((stderr, "Now at end of input.\n"));
- }
- else
- {
- yytoken = YYTRANSLATE (yychar);
- YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
- }
-
- /* If the proper action on seeing token YYTOKEN is to reduce or to
- detect an error, take that action. */
- yyn += yytoken;
- if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
- goto yydefault;
- yyn = yytable[yyn];
- if (yyn <= 0)
- {
- if (yyn == 0 || yyn == YYTABLE_NINF)
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
-
- /* Shift the look-ahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
-
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
-
- yystate = yyn;
- *++yyvsp = yylval;
-
- goto yynewstate;
-
-
-/*-----------------------------------------------------------.
-| yydefault -- do the default action for the current state. |
-`-----------------------------------------------------------*/
-yydefault:
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
- goto yyreduce;
-
-
-/*-----------------------------.
-| yyreduce -- Do a reduction. |
-`-----------------------------*/
-yyreduce:
- /* yyn is the number of a rule to reduce with. */
- yylen = yyr2[yyn];
-
- /* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
-
- Otherwise, the following line sets YYVAL to garbage.
- This behavior is undocumented and Bison
- users should not rely upon it. Assigning to YYVAL
- unconditionally makes the parser a bit smaller, and it avoids a
- GCC warning that YYVAL may be used uninitialized. */
- yyval = yyvsp[1-yylen];
-
-
- YY_REDUCE_PRINT (yyn);
- switch (yyn)
- {
- case 2:
-#line 235 "parse.y"
- {
- checkundefined();
- }
- break;
-
- case 4:
-#line 242 "parse.y"
- { error_message("implicit tagging is not supported"); }
- break;
-
- case 5:
-#line 244 "parse.y"
- { error_message("automatic tagging is not supported"); }
- break;
-
- case 7:
-#line 249 "parse.y"
- { error_message("no extensibility options supported"); }
- break;
-
- case 17:
-#line 270 "parse.y"
- {
- struct string_list *sl;
- for(sl = (yyvsp[(1) - (4)].sl); sl != NULL; sl = sl->next) {
- Symbol *s = addsym(sl->string);
- s->stype = Stype;
- }
- add_import((yyvsp[(3) - (4)].name));
- }
- break;
-
- case 22:
-#line 289 "parse.y"
- {
- (yyval.sl) = emalloc(sizeof(*(yyval.sl)));
- (yyval.sl)->string = (yyvsp[(1) - (3)].name);
- (yyval.sl)->next = (yyvsp[(3) - (3)].sl);
- }
- break;
-
- case 23:
-#line 295 "parse.y"
- {
- (yyval.sl) = emalloc(sizeof(*(yyval.sl)));
- (yyval.sl)->string = (yyvsp[(1) - (1)].name);
- (yyval.sl)->next = NULL;
- }
- break;
-
- case 24:
-#line 303 "parse.y"
- {
- Symbol *s = addsym ((yyvsp[(1) - (3)].name));
- s->stype = Stype;
- s->type = (yyvsp[(3) - (3)].type);
- fix_labels(s);
- generate_type (s);
- }
- break;
-
- case 42:
-#line 334 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Boolean,
- TE_EXPLICIT, new_type(TBoolean));
- }
- break;
-
- case 43:
-#line 341 "parse.y"
- {
- if((yyvsp[(2) - (5)].value)->type != integervalue)
- error_message("Non-integer used in first part of range");
- if((yyvsp[(2) - (5)].value)->type != integervalue)
- error_message("Non-integer in second part of range");
- (yyval.range) = ecalloc(1, sizeof(*(yyval.range)));
- (yyval.range)->min = (yyvsp[(2) - (5)].value)->u.integervalue;
- (yyval.range)->max = (yyvsp[(4) - (5)].value)->u.integervalue;
- }
- break;
-
- case 44:
-#line 351 "parse.y"
- {
- if((yyvsp[(2) - (5)].value)->type != integervalue)
- error_message("Non-integer in first part of range");
- (yyval.range) = ecalloc(1, sizeof(*(yyval.range)));
- (yyval.range)->min = (yyvsp[(2) - (5)].value)->u.integervalue;
- (yyval.range)->max = (yyvsp[(2) - (5)].value)->u.integervalue - 1;
- }
- break;
-
- case 45:
-#line 359 "parse.y"
- {
- if((yyvsp[(4) - (5)].value)->type != integervalue)
- error_message("Non-integer in second part of range");
- (yyval.range) = ecalloc(1, sizeof(*(yyval.range)));
- (yyval.range)->min = (yyvsp[(4) - (5)].value)->u.integervalue + 2;
- (yyval.range)->max = (yyvsp[(4) - (5)].value)->u.integervalue;
- }
- break;
-
- case 46:
-#line 367 "parse.y"
- {
- if((yyvsp[(2) - (3)].value)->type != integervalue)
- error_message("Non-integer used in limit");
- (yyval.range) = ecalloc(1, sizeof(*(yyval.range)));
- (yyval.range)->min = (yyvsp[(2) - (3)].value)->u.integervalue;
- (yyval.range)->max = (yyvsp[(2) - (3)].value)->u.integervalue;
- }
- break;
-
- case 47:
-#line 378 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Integer,
- TE_EXPLICIT, new_type(TInteger));
- }
- break;
-
- case 48:
-#line 383 "parse.y"
- {
- (yyval.type) = new_type(TInteger);
- (yyval.type)->range = (yyvsp[(2) - (2)].range);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Integer, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 49:
-#line 389 "parse.y"
- {
- (yyval.type) = new_type(TInteger);
- (yyval.type)->members = (yyvsp[(3) - (4)].members);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Integer, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 50:
-#line 397 "parse.y"
- {
- (yyval.members) = emalloc(sizeof(*(yyval.members)));
- ASN1_TAILQ_INIT((yyval.members));
- ASN1_TAILQ_INSERT_HEAD((yyval.members), (yyvsp[(1) - (1)].member), members);
- }
- break;
-
- case 51:
-#line 403 "parse.y"
- {
- ASN1_TAILQ_INSERT_TAIL((yyvsp[(1) - (3)].members), (yyvsp[(3) - (3)].member), members);
- (yyval.members) = (yyvsp[(1) - (3)].members);
- }
- break;
-
- case 52:
-#line 408 "parse.y"
- { (yyval.members) = (yyvsp[(1) - (3)].members); }
- break;
-
- case 53:
-#line 412 "parse.y"
- {
- (yyval.member) = emalloc(sizeof(*(yyval.member)));
- (yyval.member)->name = (yyvsp[(1) - (4)].name);
- (yyval.member)->gen_name = estrdup((yyvsp[(1) - (4)].name));
- output_name ((yyval.member)->gen_name);
- (yyval.member)->val = (yyvsp[(3) - (4)].constant);
- (yyval.member)->optional = 0;
- (yyval.member)->ellipsis = 0;
- (yyval.member)->type = NULL;
- }
- break;
-
- case 54:
-#line 425 "parse.y"
- {
- (yyval.type) = new_type(TInteger);
- (yyval.type)->members = (yyvsp[(3) - (4)].members);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Enumerated, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 56:
-#line 436 "parse.y"
- {
- (yyval.type) = new_type(TBitString);
- (yyval.type)->members = emalloc(sizeof(*(yyval.type)->members));
- ASN1_TAILQ_INIT((yyval.type)->members);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_BitString, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 57:
-#line 443 "parse.y"
- {
- (yyval.type) = new_type(TBitString);
- (yyval.type)->members = (yyvsp[(4) - (5)].members);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_BitString, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 58:
-#line 451 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_OID,
- TE_EXPLICIT, new_type(TOID));
- }
- break;
-
- case 59:
-#line 457 "parse.y"
- {
- Type *t = new_type(TOctetString);
- t->range = (yyvsp[(3) - (3)].range);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_OctetString,
- TE_EXPLICIT, t);
- }
- break;
-
- case 60:
-#line 466 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Null,
- TE_EXPLICIT, new_type(TNull));
- }
- break;
-
- case 61:
-#line 473 "parse.y"
- { (yyval.range) = NULL; }
- break;
-
- case 62:
-#line 475 "parse.y"
- { (yyval.range) = (yyvsp[(2) - (2)].range); }
- break;
-
- case 63:
-#line 480 "parse.y"
- {
- (yyval.type) = new_type(TSequence);
- (yyval.type)->members = (yyvsp[(3) - (4)].members);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Sequence, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 64:
-#line 486 "parse.y"
- {
- (yyval.type) = new_type(TSequence);
- (yyval.type)->members = NULL;
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Sequence, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 65:
-#line 494 "parse.y"
- {
- (yyval.type) = new_type(TSequenceOf);
- (yyval.type)->range = (yyvsp[(2) - (4)].range);
- (yyval.type)->subtype = (yyvsp[(4) - (4)].type);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Sequence, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 66:
-#line 503 "parse.y"
- {
- (yyval.type) = new_type(TSet);
- (yyval.type)->members = (yyvsp[(3) - (4)].members);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Set, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 67:
-#line 509 "parse.y"
- {
- (yyval.type) = new_type(TSet);
- (yyval.type)->members = NULL;
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Set, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 68:
-#line 517 "parse.y"
- {
- (yyval.type) = new_type(TSetOf);
- (yyval.type)->subtype = (yyvsp[(3) - (3)].type);
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_Set, TE_EXPLICIT, (yyval.type));
- }
- break;
-
- case 69:
-#line 525 "parse.y"
- {
- (yyval.type) = new_type(TChoice);
- (yyval.type)->members = (yyvsp[(3) - (4)].members);
- }
- break;
-
- case 72:
-#line 536 "parse.y"
- {
- Symbol *s = addsym((yyvsp[(1) - (1)].name));
- (yyval.type) = new_type(TType);
- if(s->stype != Stype && s->stype != SUndefined)
- error_message ("%s is not a type\n", (yyvsp[(1) - (1)].name));
- else
- (yyval.type)->symbol = s;
- }
- break;
-
- case 73:
-#line 547 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_GeneralizedTime,
- TE_EXPLICIT, new_type(TGeneralizedTime));
- }
- break;
-
- case 74:
-#line 552 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_UTCTime,
- TE_EXPLICIT, new_type(TUTCTime));
- }
- break;
-
- case 75:
-#line 559 "parse.y"
- {
- /* if (Constraint.type == contentConstrant) {
- assert(Constraint.u.constraint.type == octetstring|bitstring-w/o-NamedBitList); // remember to check type reference too
- if (Constraint.u.constraint.type) {
- assert((Constraint.u.constraint.type.length % 8) == 0);
- }
- }
- if (Constraint.u.constraint.encoding) {
- type == der-oid|ber-oid
- }
- */
- }
- break;
-
- case 76:
-#line 575 "parse.y"
- {
- (yyval.constraint_spec) = (yyvsp[(2) - (3)].constraint_spec);
- }
- break;
-
- case 80:
-#line 588 "parse.y"
- {
- (yyval.constraint_spec) = new_constraint_spec(CT_CONTENTS);
- (yyval.constraint_spec)->u.content.type = (yyvsp[(2) - (2)].type);
- (yyval.constraint_spec)->u.content.encoding = NULL;
- }
- break;
-
- case 81:
-#line 594 "parse.y"
- {
- if ((yyvsp[(3) - (3)].value)->type != objectidentifiervalue)
- error_message("Non-OID used in ENCODED BY constraint");
- (yyval.constraint_spec) = new_constraint_spec(CT_CONTENTS);
- (yyval.constraint_spec)->u.content.type = NULL;
- (yyval.constraint_spec)->u.content.encoding = (yyvsp[(3) - (3)].value);
- }
- break;
-
- case 82:
-#line 602 "parse.y"
- {
- if ((yyvsp[(5) - (5)].value)->type != objectidentifiervalue)
- error_message("Non-OID used in ENCODED BY constraint");
- (yyval.constraint_spec) = new_constraint_spec(CT_CONTENTS);
- (yyval.constraint_spec)->u.content.type = (yyvsp[(2) - (5)].type);
- (yyval.constraint_spec)->u.content.encoding = (yyvsp[(5) - (5)].value);
- }
- break;
-
- case 83:
-#line 612 "parse.y"
- {
- (yyval.constraint_spec) = new_constraint_spec(CT_USER);
- }
- break;
-
- case 84:
-#line 618 "parse.y"
- {
- (yyval.type) = new_type(TTag);
- (yyval.type)->tag = (yyvsp[(1) - (3)].tag);
- (yyval.type)->tag.tagenv = (yyvsp[(2) - (3)].constant);
- if((yyvsp[(3) - (3)].type)->type == TTag && (yyvsp[(2) - (3)].constant) == TE_IMPLICIT) {
- (yyval.type)->subtype = (yyvsp[(3) - (3)].type)->subtype;
- free((yyvsp[(3) - (3)].type));
- } else
- (yyval.type)->subtype = (yyvsp[(3) - (3)].type);
- }
- break;
-
- case 85:
-#line 631 "parse.y"
- {
- (yyval.tag).tagclass = (yyvsp[(2) - (4)].constant);
- (yyval.tag).tagvalue = (yyvsp[(3) - (4)].constant);
- (yyval.tag).tagenv = TE_EXPLICIT;
- }
- break;
-
- case 86:
-#line 639 "parse.y"
- {
- (yyval.constant) = ASN1_C_CONTEXT;
- }
- break;
-
- case 87:
-#line 643 "parse.y"
- {
- (yyval.constant) = ASN1_C_UNIV;
- }
- break;
-
- case 88:
-#line 647 "parse.y"
- {
- (yyval.constant) = ASN1_C_APPL;
- }
- break;
-
- case 89:
-#line 651 "parse.y"
- {
- (yyval.constant) = ASN1_C_PRIVATE;
- }
- break;
-
- case 90:
-#line 657 "parse.y"
- {
- (yyval.constant) = TE_EXPLICIT;
- }
- break;
-
- case 91:
-#line 661 "parse.y"
- {
- (yyval.constant) = TE_EXPLICIT;
- }
- break;
-
- case 92:
-#line 665 "parse.y"
- {
- (yyval.constant) = TE_IMPLICIT;
- }
- break;
-
- case 93:
-#line 672 "parse.y"
- {
- Symbol *s;
- s = addsym ((yyvsp[(1) - (4)].name));
-
- s->stype = SValue;
- s->value = (yyvsp[(4) - (4)].value);
- generate_constant (s);
- }
- break;
-
- case 95:
-#line 686 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_GeneralString,
- TE_EXPLICIT, new_type(TGeneralString));
- }
- break;
-
- case 96:
-#line 691 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_UTF8String,
- TE_EXPLICIT, new_type(TUTF8String));
- }
- break;
-
- case 97:
-#line 696 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_PrintableString,
- TE_EXPLICIT, new_type(TPrintableString));
- }
- break;
-
- case 98:
-#line 701 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_VisibleString,
- TE_EXPLICIT, new_type(TVisibleString));
- }
- break;
-
- case 99:
-#line 706 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_IA5String,
- TE_EXPLICIT, new_type(TIA5String));
- }
- break;
-
- case 100:
-#line 711 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_BMPString,
- TE_EXPLICIT, new_type(TBMPString));
- }
- break;
-
- case 101:
-#line 716 "parse.y"
- {
- (yyval.type) = new_tag(ASN1_C_UNIV, UT_UniversalString,
- TE_EXPLICIT, new_type(TUniversalString));
- }
- break;
-
- case 102:
-#line 724 "parse.y"
- {
- (yyval.members) = emalloc(sizeof(*(yyval.members)));
- ASN1_TAILQ_INIT((yyval.members));
- ASN1_TAILQ_INSERT_HEAD((yyval.members), (yyvsp[(1) - (1)].member), members);
- }
- break;
-
- case 103:
-#line 730 "parse.y"
- {
- ASN1_TAILQ_INSERT_TAIL((yyvsp[(1) - (3)].members), (yyvsp[(3) - (3)].member), members);
- (yyval.members) = (yyvsp[(1) - (3)].members);
- }
- break;
-
- case 104:
-#line 735 "parse.y"
- {
- struct member *m = ecalloc(1, sizeof(*m));
- m->name = estrdup("...");
- m->gen_name = estrdup("asn1_ellipsis");
- m->ellipsis = 1;
- ASN1_TAILQ_INSERT_TAIL((yyvsp[(1) - (3)].members), m, members);
- (yyval.members) = (yyvsp[(1) - (3)].members);
- }
- break;
-
- case 105:
-#line 746 "parse.y"
- {
- (yyval.member) = emalloc(sizeof(*(yyval.member)));
- (yyval.member)->name = (yyvsp[(1) - (2)].name);
- (yyval.member)->gen_name = estrdup((yyvsp[(1) - (2)].name));
- output_name ((yyval.member)->gen_name);
- (yyval.member)->type = (yyvsp[(2) - (2)].type);
- (yyval.member)->ellipsis = 0;
- }
- break;
-
- case 106:
-#line 757 "parse.y"
- {
- (yyval.member) = (yyvsp[(1) - (1)].member);
- (yyval.member)->optional = 0;
- (yyval.member)->defval = NULL;
- }
- break;
-
- case 107:
-#line 763 "parse.y"
- {
- (yyval.member) = (yyvsp[(1) - (2)].member);
- (yyval.member)->optional = 1;
- (yyval.member)->defval = NULL;
- }
- break;
-
- case 108:
-#line 769 "parse.y"
- {
- (yyval.member) = (yyvsp[(1) - (3)].member);
- (yyval.member)->optional = 0;
- (yyval.member)->defval = (yyvsp[(3) - (3)].value);
- }
- break;
-
- case 109:
-#line 777 "parse.y"
- {
- (yyval.members) = emalloc(sizeof(*(yyval.members)));
- ASN1_TAILQ_INIT((yyval.members));
- ASN1_TAILQ_INSERT_HEAD((yyval.members), (yyvsp[(1) - (1)].member), members);
- }
- break;
-
- case 110:
-#line 783 "parse.y"
- {
- ASN1_TAILQ_INSERT_TAIL((yyvsp[(1) - (3)].members), (yyvsp[(3) - (3)].member), members);
- (yyval.members) = (yyvsp[(1) - (3)].members);
- }
- break;
-
- case 111:
-#line 790 "parse.y"
- {
- (yyval.member) = emalloc(sizeof(*(yyval.member)));
- (yyval.member)->name = (yyvsp[(1) - (4)].name);
- (yyval.member)->gen_name = estrdup((yyvsp[(1) - (4)].name));
- output_name ((yyval.member)->gen_name);
- (yyval.member)->val = (yyvsp[(3) - (4)].constant);
- (yyval.member)->optional = 0;
- (yyval.member)->ellipsis = 0;
- (yyval.member)->type = NULL;
- }
- break;
-
- case 113:
-#line 803 "parse.y"
- { (yyval.objid) = NULL; }
- break;
-
- case 114:
-#line 807 "parse.y"
- {
- (yyval.objid) = (yyvsp[(2) - (3)].objid);
- }
- break;
-
- case 115:
-#line 813 "parse.y"
- {
- (yyval.objid) = NULL;
- }
- break;
-
- case 116:
-#line 817 "parse.y"
- {
- if ((yyvsp[(2) - (2)].objid)) {
- (yyval.objid) = (yyvsp[(2) - (2)].objid);
- add_oid_to_tail((yyvsp[(2) - (2)].objid), (yyvsp[(1) - (2)].objid));
- } else {
- (yyval.objid) = (yyvsp[(1) - (2)].objid);
- }
- }
- break;
-
- case 117:
-#line 828 "parse.y"
- {
- (yyval.objid) = new_objid((yyvsp[(1) - (4)].name), (yyvsp[(3) - (4)].constant));
- }
- break;
-
- case 118:
-#line 832 "parse.y"
- {
- Symbol *s = addsym((yyvsp[(1) - (1)].name));
- if(s->stype != SValue ||
- s->value->type != objectidentifiervalue) {
- error_message("%s is not an object identifier\n",
- s->name);
- exit(1);
- }
- (yyval.objid) = s->value->u.objectidentifiervalue;
- }
- break;
-
- case 119:
-#line 843 "parse.y"
- {
- (yyval.objid) = new_objid(NULL, (yyvsp[(1) - (1)].constant));
- }
- break;
-
- case 129:
-#line 866 "parse.y"
- {
- Symbol *s = addsym((yyvsp[(1) - (1)].name));
- if(s->stype != SValue)
- error_message ("%s is not a value\n",
- s->name);
- else
- (yyval.value) = s->value;
- }
- break;
-
- case 130:
-#line 877 "parse.y"
- {
- (yyval.value) = emalloc(sizeof(*(yyval.value)));
- (yyval.value)->type = stringvalue;
- (yyval.value)->u.stringvalue = (yyvsp[(1) - (1)].name);
- }
- break;
-
- case 131:
-#line 885 "parse.y"
- {
- (yyval.value) = emalloc(sizeof(*(yyval.value)));
- (yyval.value)->type = booleanvalue;
- (yyval.value)->u.booleanvalue = 0;
- }
- break;
-
- case 132:
-#line 891 "parse.y"
- {
- (yyval.value) = emalloc(sizeof(*(yyval.value)));
- (yyval.value)->type = booleanvalue;
- (yyval.value)->u.booleanvalue = 0;
- }
- break;
-
- case 133:
-#line 899 "parse.y"
- {
- (yyval.value) = emalloc(sizeof(*(yyval.value)));
- (yyval.value)->type = integervalue;
- (yyval.value)->u.integervalue = (yyvsp[(1) - (1)].constant);
- }
- break;
-
- case 135:
-#line 910 "parse.y"
- {
- }
- break;
-
- case 136:
-#line 915 "parse.y"
- {
- (yyval.value) = emalloc(sizeof(*(yyval.value)));
- (yyval.value)->type = objectidentifiervalue;
- (yyval.value)->u.objectidentifiervalue = (yyvsp[(1) - (1)].objid);
- }
- break;
-
-
-/* Line 1267 of yacc.c. */
-#line 2523 "parse.c"
- default: break;
- }
- YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
-
- YYPOPSTACK (yylen);
- yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
-
- *++yyvsp = yyval;
-
-
- /* Now `shift' the result of the reduction. Determine what state
- that goes to, based on the state we popped back to and the rule
- number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTOKENS];
-
- goto yynewstate;
-
-
-/*------------------------------------.
-| yyerrlab -- here on detecting error |
-`------------------------------------*/
-yyerrlab:
- /* If not already recovering from an error, report this error. */
- if (!yyerrstatus)
- {
- ++yynerrs;
-#if ! YYERROR_VERBOSE
- yyerror (YY_("syntax error"));
-#else
- {
- YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
- if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
- {
- YYSIZE_T yyalloc = 2 * yysize;
- if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
- yyalloc = YYSTACK_ALLOC_MAXIMUM;
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
- yymsg = (char *) YYSTACK_ALLOC (yyalloc);
- if (yymsg)
- yymsg_alloc = yyalloc;
- else
- {
- yymsg = yymsgbuf;
- yymsg_alloc = sizeof yymsgbuf;
- }
- }
-
- if (0 < yysize && yysize <= yymsg_alloc)
- {
- (void) yysyntax_error (yymsg, yystate, yychar);
- yyerror (yymsg);
- }
- else
- {
- yyerror (YY_("syntax error"));
- if (yysize != 0)
- goto yyexhaustedlab;
- }
- }
-#endif
- }
-
-
-
- if (yyerrstatus == 3)
- {
- /* If just tried and failed to reuse look-ahead token after an
- error, discard it. */
-
- if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
- else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval);
- yychar = YYEMPTY;
- }
- }
-
- /* Else will try to reuse look-ahead token after shifting the error
- token. */
- goto yyerrlab1;
-
-
-/*---------------------------------------------------.
-| yyerrorlab -- error raised explicitly by YYERROR. |
-`---------------------------------------------------*/
-yyerrorlab:
-
- /* Pacify compilers like GCC when the user code never invokes
- YYERROR and the label yyerrorlab therefore never appears in user
- code. */
- if (/*CONSTCOND*/ 0)
- goto yyerrorlab;
-
- /* Do not reclaim the symbols of the rule which action triggered
- this YYERROR. */
- YYPOPSTACK (yylen);
- yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
- yystate = *yyssp;
- goto yyerrlab1;
-
-
-/*-------------------------------------------------------------.
-| yyerrlab1 -- common code for both syntax error and YYERROR. |
-`-------------------------------------------------------------*/
-yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
-
- for (;;)
- {
- yyn = yypact[yystate];
- if (yyn != YYPACT_NINF)
- {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
-
- /* Pop the current state because it cannot handle the error token. */
- if (yyssp == yyss)
- YYABORT;
-
-
- yydestruct ("Error: popping",
- yystos[yystate], yyvsp);
- YYPOPSTACK (1);
- yystate = *yyssp;
- YY_STACK_PRINT (yyss, yyssp);
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- *++yyvsp = yylval;
-
-
- /* Shift the error token. */
- YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
-
- yystate = yyn;
- goto yynewstate;
-
-
-/*-------------------------------------.
-| yyacceptlab -- YYACCEPT comes here. |
-`-------------------------------------*/
-yyacceptlab:
- yyresult = 0;
- goto yyreturn;
-
-/*-----------------------------------.
-| yyabortlab -- YYABORT comes here. |
-`-----------------------------------*/
-yyabortlab:
- yyresult = 1;
- goto yyreturn;
-
-#ifndef yyoverflow
-/*-------------------------------------------------.
-| yyexhaustedlab -- memory exhaustion comes here. |
-`-------------------------------------------------*/
-yyexhaustedlab:
- yyerror (YY_("memory exhausted"));
- yyresult = 2;
- /* Fall through. */
-#endif
-
-yyreturn:
- if (yychar != YYEOF && yychar != YYEMPTY)
- yydestruct ("Cleanup: discarding lookahead",
- yytoken, &yylval);
- /* Do not reclaim the symbols of the rule which action triggered
- this YYABORT or YYACCEPT. */
- YYPOPSTACK (yylen);
- YY_STACK_PRINT (yyss, yyssp);
- while (yyssp != yyss)
- {
- yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp);
- YYPOPSTACK (1);
- }
-#ifndef yyoverflow
- if (yyss != yyssa)
- YYSTACK_FREE (yyss);
-#endif
-#if YYERROR_VERBOSE
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
-#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
-}
-
-
-#line 922 "parse.y"
-
-
-void
-yyerror (const char *s)
-{
- error_message ("%s\n", s);
-}
-
-static Type *
-new_tag(int tagclass, int tagvalue, int tagenv, Type *oldtype)
-{
- Type *t;
- if(oldtype->type == TTag && oldtype->tag.tagenv == TE_IMPLICIT) {
- t = oldtype;
- oldtype = oldtype->subtype; /* XXX */
- } else
- t = new_type (TTag);
-
- t->tag.tagclass = tagclass;
- t->tag.tagvalue = tagvalue;
- t->tag.tagenv = tagenv;
- t->subtype = oldtype;
- return t;
-}
-
-static struct objid *
-new_objid(const char *label, int value)
-{
- struct objid *s;
- s = emalloc(sizeof(*s));
- s->label = label;
- s->value = value;
- s->next = NULL;
- return s;
-}
-
-static void
-add_oid_to_tail(struct objid *head, struct objid *tail)
-{
- struct objid *o;
- o = head;
- while (o->next)
- o = o->next;
- o->next = tail;
-}
-
-static Type *
-new_type (Typetype tt)
-{
- Type *t = ecalloc(1, sizeof(*t));
- t->type = tt;
- return t;
-}
-
-static struct constraint_spec *
-new_constraint_spec(enum ctype ct)
-{
- struct constraint_spec *c = ecalloc(1, sizeof(*c));
- c->ctype = ct;
- return c;
-}
-
-static void fix_labels2(Type *t, const char *prefix);
-static void fix_labels1(struct memhead *members, const char *prefix)
-{
- Member *m;
-
- if(members == NULL)
- return;
- ASN1_TAILQ_FOREACH(m, members, members) {
- asprintf(&m->label, "%s_%s", prefix, m->gen_name);
- if (m->label == NULL)
- errx(1, "malloc");
- if(m->type != NULL)
- fix_labels2(m->type, m->label);
- }
-}
-
-static void fix_labels2(Type *t, const char *prefix)
-{
- for(; t; t = t->subtype)
- fix_labels1(t->members, prefix);
-}
-
-static void
-fix_labels(Symbol *s)
-{
- char *p;
- asprintf(&p, "choice_%s", s->gen_name);
- if (p == NULL)
- errx(1, "malloc");
- fix_labels2(s->type, p);
- free(p);
-}
-
Deleted: trunk/crypto/heimdal/lib/asn1/parse.h
===================================================================
--- trunk/crypto/heimdal/lib/asn1/parse.h 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/asn1/parse.h 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,249 +0,0 @@
-/* A Bison parser, made by GNU Bison 2.3. */
-
-/* Skeleton interface for Bison's Yacc-like parsers in C
-
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- kw_ABSENT = 258,
- kw_ABSTRACT_SYNTAX = 259,
- kw_ALL = 260,
- kw_APPLICATION = 261,
- kw_AUTOMATIC = 262,
- kw_BEGIN = 263,
- kw_BIT = 264,
- kw_BMPString = 265,
- kw_BOOLEAN = 266,
- kw_BY = 267,
- kw_CHARACTER = 268,
- kw_CHOICE = 269,
- kw_CLASS = 270,
- kw_COMPONENT = 271,
- kw_COMPONENTS = 272,
- kw_CONSTRAINED = 273,
- kw_CONTAINING = 274,
- kw_DEFAULT = 275,
- kw_DEFINITIONS = 276,
- kw_EMBEDDED = 277,
- kw_ENCODED = 278,
- kw_END = 279,
- kw_ENUMERATED = 280,
- kw_EXCEPT = 281,
- kw_EXPLICIT = 282,
- kw_EXPORTS = 283,
- kw_EXTENSIBILITY = 284,
- kw_EXTERNAL = 285,
- kw_FALSE = 286,
- kw_FROM = 287,
- kw_GeneralString = 288,
- kw_GeneralizedTime = 289,
- kw_GraphicString = 290,
- kw_IA5String = 291,
- kw_IDENTIFIER = 292,
- kw_IMPLICIT = 293,
- kw_IMPLIED = 294,
- kw_IMPORTS = 295,
- kw_INCLUDES = 296,
- kw_INSTANCE = 297,
- kw_INTEGER = 298,
- kw_INTERSECTION = 299,
- kw_ISO646String = 300,
- kw_MAX = 301,
- kw_MIN = 302,
- kw_MINUS_INFINITY = 303,
- kw_NULL = 304,
- kw_NumericString = 305,
- kw_OBJECT = 306,
- kw_OCTET = 307,
- kw_OF = 308,
- kw_OPTIONAL = 309,
- kw_ObjectDescriptor = 310,
- kw_PATTERN = 311,
- kw_PDV = 312,
- kw_PLUS_INFINITY = 313,
- kw_PRESENT = 314,
- kw_PRIVATE = 315,
- kw_PrintableString = 316,
- kw_REAL = 317,
- kw_RELATIVE_OID = 318,
- kw_SEQUENCE = 319,
- kw_SET = 320,
- kw_SIZE = 321,
- kw_STRING = 322,
- kw_SYNTAX = 323,
- kw_T61String = 324,
- kw_TAGS = 325,
- kw_TRUE = 326,
- kw_TYPE_IDENTIFIER = 327,
- kw_TeletexString = 328,
- kw_UNION = 329,
- kw_UNIQUE = 330,
- kw_UNIVERSAL = 331,
- kw_UTCTime = 332,
- kw_UTF8String = 333,
- kw_UniversalString = 334,
- kw_VideotexString = 335,
- kw_VisibleString = 336,
- kw_WITH = 337,
- RANGE = 338,
- EEQUAL = 339,
- ELLIPSIS = 340,
- IDENTIFIER = 341,
- referencename = 342,
- STRING = 343,
- NUMBER = 344
- };
-#endif
-/* Tokens. */
-#define kw_ABSENT 258
-#define kw_ABSTRACT_SYNTAX 259
-#define kw_ALL 260
-#define kw_APPLICATION 261
-#define kw_AUTOMATIC 262
-#define kw_BEGIN 263
-#define kw_BIT 264
-#define kw_BMPString 265
-#define kw_BOOLEAN 266
-#define kw_BY 267
-#define kw_CHARACTER 268
-#define kw_CHOICE 269
-#define kw_CLASS 270
-#define kw_COMPONENT 271
-#define kw_COMPONENTS 272
-#define kw_CONSTRAINED 273
-#define kw_CONTAINING 274
-#define kw_DEFAULT 275
-#define kw_DEFINITIONS 276
-#define kw_EMBEDDED 277
-#define kw_ENCODED 278
-#define kw_END 279
-#define kw_ENUMERATED 280
-#define kw_EXCEPT 281
-#define kw_EXPLICIT 282
-#define kw_EXPORTS 283
-#define kw_EXTENSIBILITY 284
-#define kw_EXTERNAL 285
-#define kw_FALSE 286
-#define kw_FROM 287
-#define kw_GeneralString 288
-#define kw_GeneralizedTime 289
-#define kw_GraphicString 290
-#define kw_IA5String 291
-#define kw_IDENTIFIER 292
-#define kw_IMPLICIT 293
-#define kw_IMPLIED 294
-#define kw_IMPORTS 295
-#define kw_INCLUDES 296
-#define kw_INSTANCE 297
-#define kw_INTEGER 298
-#define kw_INTERSECTION 299
-#define kw_ISO646String 300
-#define kw_MAX 301
-#define kw_MIN 302
-#define kw_MINUS_INFINITY 303
-#define kw_NULL 304
-#define kw_NumericString 305
-#define kw_OBJECT 306
-#define kw_OCTET 307
-#define kw_OF 308
-#define kw_OPTIONAL 309
-#define kw_ObjectDescriptor 310
-#define kw_PATTERN 311
-#define kw_PDV 312
-#define kw_PLUS_INFINITY 313
-#define kw_PRESENT 314
-#define kw_PRIVATE 315
-#define kw_PrintableString 316
-#define kw_REAL 317
-#define kw_RELATIVE_OID 318
-#define kw_SEQUENCE 319
-#define kw_SET 320
-#define kw_SIZE 321
-#define kw_STRING 322
-#define kw_SYNTAX 323
-#define kw_T61String 324
-#define kw_TAGS 325
-#define kw_TRUE 326
-#define kw_TYPE_IDENTIFIER 327
-#define kw_TeletexString 328
-#define kw_UNION 329
-#define kw_UNIQUE 330
-#define kw_UNIVERSAL 331
-#define kw_UTCTime 332
-#define kw_UTF8String 333
-#define kw_UniversalString 334
-#define kw_VideotexString 335
-#define kw_VisibleString 336
-#define kw_WITH 337
-#define RANGE 338
-#define EEQUAL 339
-#define ELLIPSIS 340
-#define IDENTIFIER 341
-#define referencename 342
-#define STRING 343
-#define NUMBER 344
-
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 65 "parse.y"
-{
- int constant;
- struct value *value;
- struct range *range;
- char *name;
- Type *type;
- Member *member;
- struct objid *objid;
- char *defval;
- struct string_list *sl;
- struct tagtype tag;
- struct memhead *members;
- struct constraint_spec *constraint_spec;
-}
-/* Line 1529 of yacc.c. */
-#line 242 "parse.h"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-extern YYSTYPE yylval;
-
Deleted: trunk/crypto/heimdal/lib/roken/NTMakefile
===================================================================
--- trunk/crypto/heimdal/lib/roken/NTMakefile 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/NTMakefile 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,274 +0,0 @@
-########################################################################
-#
-# Copyright (c) 2009, Secure Endpoints Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# - Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# - Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-RELDIR=lib\roken
-
-!include ../../windows/NTMakefile.w32
-
-libroken_la_OBJS = \
- $(OBJ)\base64.obj \
- $(OBJ)\bswap.obj \
- $(OBJ)\concat.obj \
- $(OBJ)\cloexec.obj \
- $(OBJ)\ct.obj \
- $(OBJ)\dirent.obj \
- $(OBJ)\dlfcn_w32.obj \
- $(OBJ)\dumpdata.obj \
- $(OBJ)\ecalloc.obj \
- $(OBJ)\emalloc.obj \
- $(OBJ)\environment.obj \
- $(OBJ)\eread.obj \
- $(OBJ)\erealloc.obj \
- $(OBJ)\err.obj \
- $(OBJ)\errx.obj \
- $(OBJ)\esetenv.obj \
- $(OBJ)\estrdup.obj \
- $(OBJ)\ewrite.obj \
- $(OBJ)\flock.obj \
- $(OBJ)\fnmatch.obj \
- $(OBJ)\getaddrinfo_hostspec.obj \
- $(OBJ)\get_default_username.obj \
- $(OBJ)\get_window_size.obj \
- $(OBJ)\getarg.obj \
- $(OBJ)\getifaddrs_w32.obj \
- $(OBJ)\getnameinfo_verified.obj \
- $(OBJ)\getopt.obj \
- $(OBJ)\getprogname.obj \
- $(OBJ)\gettimeofday.obj \
- $(OBJ)\hex.obj \
- $(OBJ)\hostent_find_fqdn.obj \
- $(OBJ)\inet_aton.obj \
- $(OBJ)\issuid.obj \
- $(OBJ)\localtime_r.obj \
- $(OBJ)\lstat.obj \
- $(OBJ)\mini_inetd.obj \
- $(OBJ)\mkstemp.obj \
- $(OBJ)\net_read.obj \
- $(OBJ)\net_write.obj \
- $(OBJ)\parse_bytes.obj \
- $(OBJ)\parse_time.obj \
- $(OBJ)\parse_units.obj \
- $(OBJ)\realloc.obj \
- $(OBJ)\rename.obj \
- $(OBJ)\resolve.obj \
- $(OBJ)\rand.obj \
- $(OBJ)\roken_gethostby.obj \
- $(OBJ)\rtbl.obj \
- $(OBJ)\sendmsg.obj \
- $(OBJ)\setenv.obj \
- $(OBJ)\setprogname.obj \
- $(OBJ)\simple_exec_w32.obj \
- $(OBJ)\sleep.obj \
- $(OBJ)\snprintf.obj \
- $(OBJ)\socket.obj \
- $(OBJ)\sockstartup_w32.obj \
- $(OBJ)\strcollect.obj \
- $(OBJ)\strerror_r.obj \
- $(OBJ)\strlcat.obj \
- $(OBJ)\strlcpy.obj \
- $(OBJ)\strpool.obj \
- $(OBJ)\strptime.obj \
- $(OBJ)\strsep.obj \
- $(OBJ)\strsep_copy.obj \
- $(OBJ)\strtok_r.obj \
- $(OBJ)\syslogc.obj \
- $(OBJ)\timegm.obj \
- $(OBJ)\timeval.obj \
- $(OBJ)\tm2time.obj \
- $(OBJ)\tsearch.obj \
- $(OBJ)\unvis.obj \
- $(OBJ)\verr.obj \
- $(OBJ)\verrx.obj \
- $(OBJ)\vis.obj \
- $(OBJ)\vwarn.obj \
- $(OBJ)\vwarnx.obj \
- $(OBJ)\warn.obj \
- $(OBJ)\warnerr.obj \
- $(OBJ)\warnx.obj \
- $(OBJ)\xfree.obj
-
-!if $(NMAKE_WINVER) < 0x0600
-libroken_la_OBJS=$(libroken_la_OBJS) \
- $(OBJ)\inet_ntop.obj \
- $(OBJ)\inet_pton.obj
-!endif
-
-{}.c{$(OBJ)}.obj::
- $(C2OBJ_P) -DBUILD_ROKEN_LIB
-
-$(LIBROKEN): $(libroken_la_OBJS)
- $(LIBCON_C) -out:$@ @<<
-$(**: =
-)
-<<
-
-$(OBJ)\make-roken.exe: $(OBJ)\make-roken.obj
- $(EXECONLINK)
-
-$(OBJ)\make-roken.c: roken.h.in roken.awk $(INCDIR)\config.h
- $(AWK) -f roken.awk roken.h.in > $(OBJ)\make-roken.c || $(RM) $(OBJ)\make-roken.c
-
-$(INCDIR)\roken.h: $(OBJ)\make-roken.exe
- $(OBJ)\make-roken.exe > $@ || $(RM) $@
-
-INCFILES = \
- $(INCDIR)\base64.h \
- $(INCDIR)\dirent.h \
- $(INCDIR)\dlfcn.h \
- $(INCDIR)\err.h \
- $(INCDIR)\fnmatch.h \
- $(INCDIR)\getarg.h \
- $(INCDIR)\glob.h \
- $(INCDIR)\hex.h \
- $(INCDIR)\ifaddrs.h \
- $(INCDIR)\parse_bytes.h \
- $(INCDIR)\parse_time.h \
- $(INCDIR)\parse_units.h \
- $(INCDIR)\resolve.h \
- $(INCDIR)\roken.h \
- $(INCDIR)\roken-common.h \
- $(INCDIR)\rtbl.h \
- $(INCDIR)\search.h \
- $(INCDIR)\stdbool.h \
- $(INCDIR)\syslog.h \
- $(INCDIR)\vis.h \
- $(INCDIR)\xdbm.h
-
-clean::
- -$(RM) $(XHEADERS)
-
-all:: $(INCFILES) $(LIBROKEN)
-
-clean::
- -$(RM) $(LIBROKEN)
-
-TMP_PROGS = $(OBJ)\snprintf-test.exe $(OBJ)\resolve-test.exe
-
-# Tests
-
-TEST_PROGS = \
- $(OBJ)\base64-test.exe \
- $(OBJ)\getaddrinfo-test.exe \
- $(OBJ)\getifaddrs-test.exe \
- $(OBJ)\hex-test.exe \
- $(OBJ)\test-readenv.exe \
- $(OBJ)\parse_bytes-test.exe \
- $(OBJ)\parse_reply-test.exe \
- $(OBJ)\parse_time-test.exe \
- $(OBJ)\snprintf-test.exe \
- $(OBJ)\strpftime-test.exe \
- $(OBJ)\dirent-test.exe \
- $(OBJ)\test-mini_inetd.exe
-
-$(OBJ)\strftime_test.obj: strftime.c
- $(C2OBJ) -DTEST_SNPRINTF -DTEST_STRPFTIME -DBUILD_ROKEN_LIB
-
-$(OBJ)\strptime_test.obj: strptime.c
- $(C2OBJ) -DTEST_SNPRINTF -DTEST_STRPFTIME -DBUILD_ROKEN_LIB
-
-$(OBJ)\snprintf_test.obj: snprintf.c
- $(C2OBJ) -DTEST_SNPRINTF -DTEST_STRPFTIME -DBUILD_ROKEN_LIB
-
-$(OBJ)\libtest.lib: $(OBJ)\strftime_test.obj $(OBJ)\strptime_test.obj $(OBJ)\snprintf_test.obj
- $(LIBCON)
-
-$(OBJ)\parse_reply-test.obj: parse_reply-test.c
- $(C2OBJ) -DTEST_RESOLVE -DBUILD_ROKEN_LIB
-
-$(OBJ)\resolve_test.obj: resolve.c
- $(C2OBJ) -DTEST_RESOLVE -DBUILD_ROKEN_LIB
-
-$(OBJ)\parse_reply-test.exe: $(OBJ)\parse_reply-test.obj $(OBJ)\resolve_test.obj $(LIBROKEN)
- $(EXECONLINK) DnsAPI.lib
-
-$(OBJ)\test-readenv.exe: $(OBJ)\test-readenv.obj $(OBJ)\test-mem.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\parse_time-test.exe: $(OBJ)\parse_time-test.obj $(OBJ)\test-mem.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\strpftime-test.obj: strpftime-test.c
- $(C2OBJ) -DTEST_STRPFTIME -DBUILD_ROKEN_LIB
-
-$(OBJ)\strpftime-test.exe: $(OBJ)\strpftime-test.obj $(OBJ)\libtest.lib $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\snprintf-test.obj: snprintf-test.c
- $(C2OBJ) -DTEST_SNPRINTF -DBUILD_ROKEN_LIB
-
-$(OBJ)\snprintf-test.exe: $(OBJ)\snprintf-test.obj $(OBJ)\libtest.lib $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\resolve-test.exe: $(OBJ)\resolve-test.obj $(LIBROKEN)
- $(EXECONLINK) DnsAPI.lib
-
-$(OBJ)\base64-test.exe: $(OBJ)\base64-test.obj $(OBJ)\base64.obj
- $(EXECONLINK)
-
-$(OBJ)\getaddrinfo-test.exe: $(OBJ)\getaddrinfo-test.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\hex-test.exe: $(OBJ)\hex-test.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\parse_bytes-test.exe: $(OBJ)\parse_bytes-test.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\dirent-test.exe: $(OBJ)\dirent-test.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\getifaddrs-test.exe: $(OBJ)\getifaddrs-test.obj $(LIBROKEN)
- $(EXECONLINK)
-
-$(OBJ)\test-mini_inetd.exe: $(OBJ)\test-mini_inetd.obj $(LIBROKEN)
- $(EXECONLINK)
-
-test-binaries: $(TEST_PROGS) $(TMP_PROGS)
-
-test-run:
- cd $(OBJ)
- test-mini_inetd.exe
- dirent-test.exe
- base64-test.exe
- getaddrinfo-test.exe
- getifaddrs-test.exe
- hex-test.exe
- test-readenv.exe
- parse_bytes-test.exe
-# Need to rewrite this test:
-# parse_reply-test.exe
- parse_time-test.exe
- snprintf-test.exe
- strpftime-test.exe
- cd $(SRCDIR)
-
-test:: test-binaries test-run
-
Deleted: trunk/crypto/heimdal/lib/roken/ecalloc.cat3
===================================================================
--- trunk/crypto/heimdal/lib/roken/ecalloc.cat3 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/ecalloc.cat3 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,47 +0,0 @@
-
-ECALLOC(3) BSD Library Functions Manual ECALLOC(3)
-
-NNAAMMEE
- eeccaalllloocc, eemmaalllloocc, eerreeaadd, eerreeaalllloocc, eesseetteennvv, eessttrrdduupp, eewwrriittee -- exit-on-
- failure wrapper functions
-
-LLIIBBRRAARRYY
- The roken library (libroken, -lroken)
-
-SSYYNNOOPPSSIISS
- ##iinncclluuddee <<rrookkeenn..hh>>
-
- _v_o_i_d _*
- eeccaalllloocc(_s_i_z_e___t _n_u_m_b_e_r, _s_i_z_e___t _s_i_z_e);
-
- _v_o_i_d _*
- eemmaalllloocc(_s_i_z_e___t _s_z);
-
- _s_s_i_z_e___t
- eerreeaadd(_i_n_t _f_d, _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s);
-
- _v_o_i_d _*
- eerreeaalllloocc(_v_o_i_d _*_p_t_r, _s_i_z_e___t _s_z);
-
- _v_o_i_d
- eesseetteennvv(_c_o_n_s_t _c_h_a_r _*_v_a_r, _c_o_n_s_t _c_h_a_r _*_v_a_l, _i_n_t _r_e_w_r_i_t_e);
-
- _c_h_a_r _*
- eessttrrdduupp(_c_o_n_s_t _c_h_a_r _*_s_t_r);
-
- _s_s_i_z_e___t
- eewwrriittee(_i_n_t _f_d, _c_o_n_s_t _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s);
-
-DDEESSCCRRIIPPTTIIOONN
- These functions do the same as the ones without the ``e'' prefix, but if
- there is an error they will print a message with errx(3), and exit. For
- eerreeaadd and eewwrriittee this is also true for partial data.
-
- This is useful in applications when there is no need for a more advanced
- failure mode.
-
-SSEEEE AALLSSOO
- read(2), write(2), calloc(3), errx(3), malloc(3), realloc(3), setenv(3),
- strdup(3)
-
-HEIMDAL August 14, 2003 HEIMDAL
Deleted: trunk/crypto/heimdal/lib/roken/getarg.cat3
===================================================================
--- trunk/crypto/heimdal/lib/roken/getarg.cat3 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/getarg.cat3 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,231 +0,0 @@
-
-GETARG(3) BSD Library Functions Manual GETARG(3)
-
-NNAAMMEE
- ggeettaarrgg, aarrgg__pprriinnttuussaaggee -- collect command line options
-
-SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ggeettaarrgg..hh>>
-
- _i_n_t
- ggeettaarrgg(_s_t_r_u_c_t _g_e_t_a_r_g_s _*_a_r_g_s, _s_i_z_e___t _n_u_m___a_r_g_s, _i_n_t _a_r_g_c, _c_h_a_r _*_*_a_r_g_v,
- _i_n_t _*_o_p_t_i_n_d);
-
- _v_o_i_d
- aarrgg__pprriinnttuussaaggee(_s_t_r_u_c_t _g_e_t_a_r_g_s _*_a_r_g_s, _s_i_z_e___t _n_u_m___a_r_g_s,
- _c_o_n_s_t _c_h_a_r _*_p_r_o_g_n_a_m_e, _c_o_n_s_t _c_h_a_r _*_e_x_t_r_a___s_t_r_i_n_g);
-
-DDEESSCCRRIIPPTTIIOONN
- ggeettaarrgg() collects any command line options given to a program in an eas-
- ily used way. aarrgg__pprriinnttuussaaggee() pretty-prints the available options, with
- a short help text.
-
- _a_r_g_s is the option specification to use, and it's an array of _s_t_r_u_c_t
- _g_e_t_a_r_g_s elements. _n_u_m___a_r_g_s is the size of _a_r_g_s (in elements). _a_r_g_c and
- _a_r_g_v are the argument count and argument vector to extract option from.
- _o_p_t_i_n_d is a pointer to an integer where the index to the last processed
- argument is stored, it must be initialised to the first index (minus one)
- to process (normally 0) before the first call.
-
- _a_r_g___p_r_i_n_t_u_s_a_g_e take the same _a_r_g_s and _n_u_m___a_r_g_s as getarg; _p_r_o_g_n_a_m_e is the
- name of the program (to be used in the help text), and _e_x_t_r_a___s_t_r_i_n_g is a
- string to print after the actual options to indicate more arguments. The
- usefulness of this function is realised only be people who has used pro-
- grams that has help strings that doesn't match what the code does.
-
- The _g_e_t_a_r_g_s struct has the following elements.
-
- struct getargs{
- const char *long_name;
- char short_name;
- enum { arg_integer,
- arg_string,
- arg_flag,
- arg_negative_flag,
- arg_strings,
- arg_double,
- arg_collect
- } type;
- void *value;
- const char *help;
- const char *arg_help;
- };
-
- _l_o_n_g___n_a_m_e is the long name of the option, it can be NULL, if you don't
- want a long name. _s_h_o_r_t___n_a_m_e is the characted to use as short option, it
- can be zero. If the option has a value the _v_a_l_u_e field gets filled in
- with that value interpreted as specified by the _t_y_p_e field. _h_e_l_p is a
- longer help string for the option as a whole, if it's NULL the help text
- for the option is omitted (but it's still displayed in the synopsis).
- _a_r_g___h_e_l_p is a description of the argument, if NULL a default value will
- be used, depending on the type of the option:
-
- arg_integer the argument is a signed integer, and _v_a_l_u_e should
- point to an _i_n_t.
-
- _a_r_g___s_t_r_i_n_g the argument is a string, and _v_a_l_u_e should point to a
- _c_h_a_r_*.
-
- _a_r_g___f_l_a_g the argument is a flag, and _v_a_l_u_e should point to a
- _i_n_t. It gets filled in with either zero or one,
- depending on how the option is given, the normal case
- being one. Note that if the option isn't given, the
- value isn't altered, so it should be initialised to
- some useful default.
-
- _a_r_g___n_e_g_a_t_i_v_e___f_l_a_g this is the same as _a_r_g___f_l_a_g but it reverses the mean-
- ing of the flag (a given short option clears the
- flag), and the synopsis of a long option is negated.
-
- _a_r_g___s_t_r_i_n_g_s the argument can be given multiple times, and the val-
- ues are collected in an array; _v_a_l_u_e should be a
- pointer to a _s_t_r_u_c_t _g_e_t_a_r_g___s_t_r_i_n_g_s structure, which
- holds a length and a string pointer.
-
- _a_r_g___d_o_u_b_l_e argument is a double precision floating point value,
- and _v_a_l_u_e should point to a _d_o_u_b_l_e.
-
- _a_r_g___c_o_l_l_e_c_t allows more fine-grained control of the option parsing
- process. _v_a_l_u_e should be a pointer to a
- _g_e_t_a_r_g___c_o_l_l_e_c_t___i_n_f_o structure:
-
- typedef int (*getarg_collect_func)(int short_opt,
- int argc,
- char **argv,
- int *optind,
- int *optarg,
- void *data);
-
- typedef struct getarg_collect_info {
- getarg_collect_func func;
- void *data;
- } getarg_collect_info;
-
- With the _f_u_n_c member set to a function to call, and
- _d_a_t_a to some application specific data. The parameters
- to the collect function are:
-
- _s_h_o_r_t___f_l_a_g non-zero if this call is via a short option
- flag, zero otherwise
-
- _a_r_g_c, _a_r_g_v the whole argument list
-
- _o_p_t_i_n_d pointer to the index in argv where the flag is
-
- _o_p_t_a_r_g pointer to the index in argv[*optind] where the
- flag name starts
-
- _d_a_t_a application specific data
-
- You can modify _*_o_p_t_i_n_d, and _*_o_p_t_a_r_g, but to do this
- correct you (more or less) have to know about the
- inner workings of getarg.
-
- You can skip parts of arguments by increasing _*_o_p_t_a_r_g
- (you could implement the --zz_3 set of flags from ggzziipp
- with this), or whole argument strings by increasing
- _*_o_p_t_i_n_d (let's say you want a flag --cc _x _y _z to specify
- a coordinate); if you also have to set _*_o_p_t_a_r_g to a
- sane value.
-
- The collect function should return one of
- ARG_ERR_NO_MATCH, ARG_ERR_BAD_ARG, ARG_ERR_NO_ARG,
- ENOMEM on error, zero otherwise.
-
- For your convenience there is a function,
- ggeettaarrgg__ooppttaarrgg(), that returns the traditional argument
- string, and you pass it all arguments, sans data, that
- where given to the collection function.
-
- Don't use this more this unless you absolutely have
- to.
-
- Option parsing is similar to what getopt uses. Short options without
- arguments can be compressed (--xxyyzz is the same as --xx --yy --zz), and short
- options with arguments take these as either the rest of the argv-string
- or as the next option (--oo_f_o_o, or --oo _f_o_o).
-
- Long option names are prefixed with -- (double dash), and the value with
- a = (equal), ----ffoooo==_b_a_r. Long option flags can either be specified as
- they are (----hheellpp), or with an (boolean parsable) option (----hheellpp==_y_e_s,
- ----hheellpp==_t_r_u_e, or similar), or they can also be negated (----nnoo--hheellpp is the
- same as ----hheellpp==no), and if you're really confused you can do it multiple
- times (----nnoo--nnoo--hheellpp==_f_a_l_s_e, or even ----nnoo--nnoo--hheellpp==_m_a_y_b_e).
-
-EEXXAAMMPPLLEE
- #include <stdio.h>
- #include <string.h>
- #include <getarg.h>
-
- char *source = "Ouagadougou";
- char *destination;
- int weight;
- int include_catalog = 1;
- int help_flag;
-
- struct getargs args[] = {
- { "source", 's', arg_string, &source,
- "source of shippment", "city" },
- { "destination", 'd', arg_string, &destination,
- "destination of shippment", "city" },
- { "weight", 'w', arg_integer, &weight,
- "weight of shippment", "tons" },
- { "catalog", 'c', arg_negative_flag, &include_catalog,
- "include product catalog" },
- { "help", 'h', arg_flag, &help_flag }
- };
-
- int num_args = sizeof(args) / sizeof(args[0]); /* number of elements in args */
-
- const char *progname = "ship++";
-
- int
- main(int argc, char **argv)
- {
- int optind = 0;
- if (getarg(args, num_args, argc, argv, &optind)) {
- arg_printusage(args, num_args, progname, "stuff...");
- exit (1);
- }
- if (help_flag) {
- arg_printusage(args, num_args, progname, "stuff...");
- exit (0);
- }
- if (destination == NULL) {
- fprintf(stderr, "%s: must specify destination\n", progname);
- exit(1);
- }
- if (strcmp(source, destination) == 0) {
- fprintf(stderr, "%s: destination must be different from source\n");
- exit(1);
- }
- /* include more stuff here ... */
- exit(2);
- }
-
- The output help output from this program looks like this:
-
- $ ship++ --help
- Usage: ship++ [--source=city] [-s city] [--destination=city] [-d city]
- [--weight=tons] [-w tons] [--no-catalog] [-c] [--help] [-h] stuff...
- -s city, --source=city source of shippment
- -d city, --destination=city destination of shippment
- -w tons, --weight=tons weight of shippment
- -c, --no-catalog include product catalog
-
-BBUUGGSS
- It should be more flexible, so it would be possible to use other more
- complicated option syntaxes, such as what ps(1), and tar(1), uses, or the
- AFS model where you can skip the flag names as long as the options come
- in the correct order.
-
- Options with multiple arguments should be handled better.
-
- Should be integreated with SL.
-
- It's very confusing that the struct you pass in is called getargS.
-
-SSEEEE AALLSSOO
- getopt(3)
-
-ROKEN September 24, 1999 ROKEN
Deleted: trunk/crypto/heimdal/lib/roken/getifaddrs-test.c
===================================================================
--- trunk/crypto/heimdal/lib/roken/getifaddrs-test.c 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/getifaddrs-test.c 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,137 +0,0 @@
-/*
- * Copyright (c) 2009 Kungliga Tekniska Högskolan
- * (Royal Institute of Technology, Stockholm, Sweden).
- * All rights reserved.
- *
- * Portions Copyright (c) 2009, Secure Endpoints Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * 3. Neither the name of the Institute nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <config.h>
-#include <err.h>
-#include "getarg.h"
-
-#include "roken.h"
-
-#include <ifaddrs.h>
-
-static int verbose_counter;
-static int version_flag;
-static int help_flag;
-
-static struct getargs args[] = {
- {"verbose", 0, arg_counter, &verbose_counter,"verbose", NULL},
- {"version", 0, arg_flag, &version_flag, "print version",NULL},
- {"help", 0, arg_flag, &help_flag, NULL, NULL}
-};
-
-static void
-usage(int ret)
-{
- arg_printusage (args,
- sizeof(args) / sizeof(args[0]),
- NULL, "");
- exit (ret);
-}
-
-
-static void
-print_addr(const char *s, struct sockaddr *sa)
-{
- int i;
- printf(" %s=%d/", s, sa->sa_family);
-#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
- for(i = 0; i < sa->sa_len - ((long)sa->sa_data - (long)&sa->sa_family); i++)
- printf("%02x", ((unsigned char*)sa->sa_data)[i]);
-#else
- for(i = 0; i < sizeof(sa->sa_data); i++)
- printf("%02x", ((unsigned char*)sa->sa_data)[i]);
-#endif
- printf("\n");
-}
-
-static void
-print_ifaddrs(struct ifaddrs *x)
-{
- struct ifaddrs *p;
-
- for(p = x; p; p = p->ifa_next) {
- if (verbose_counter) {
- printf("%s\n", p->ifa_name);
- printf(" flags=%x\n", p->ifa_flags);
- if(p->ifa_addr)
- print_addr("addr", p->ifa_addr);
- if(p->ifa_dstaddr)
- print_addr("dstaddr", p->ifa_dstaddr);
- if(p->ifa_netmask)
- print_addr("netmask", p->ifa_netmask);
- printf(" %p\n", p->ifa_data);
- }
- }
-}
-
-int
-main(int argc, char **argv)
-{
- struct ifaddrs *addrs = NULL;
- int ret, optidx = 0;
-
- setprogname (argv[0]);
-
- if (getarg (args, sizeof(args) / sizeof(args[0]), argc, argv,
- &optidx))
- usage (1);
-
- if (help_flag)
- usage (0);
-
- if (version_flag) {
- fprintf (stderr, "%s from %s-%s\n", getprogname(), PACKAGE, VERSION);
- return 0;
- }
-
- if (rk_SOCK_INIT())
- errx(1, "Couldn't initialize sockets. Err=%d\n", rk_SOCK_ERRNO);
-
- ret = getifaddrs(&addrs);
- if (ret != 0)
- err(1, "getifaddrs");
-
- if (addrs == NULL)
- errx(1, "address == NULL");
-
- print_ifaddrs(addrs);
-
- /* Check that freeifaddrs doesn't crash */
- freeifaddrs(addrs);
-
- rk_SOCK_EXIT();
-
- return 0;
-}
Deleted: trunk/crypto/heimdal/lib/roken/parse_time.cat3
===================================================================
--- trunk/crypto/heimdal/lib/roken/parse_time.cat3 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/parse_time.cat3 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,112 +0,0 @@
-
-PARSE_TIME(3) BSD Library Functions Manual PARSE_TIME(3)
-
-NNAAMMEE
- ppaarrssee__ttiimmee, pprriinntt__ttiimmee__ttaabbllee, uunnppaarrssee__ttiimmee, uunnppaarrssee__ttiimmee__aapppprrooxx, -- parse
- and unparse time intervals
-
-LLIIBBRRAARRYY
- The roken library (libroken, -lroken)
-
-SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ppaarrssee__ttiimmee..hh>>
-
- _i_n_t
- ppaarrssee__ttiimmee(_c_o_n_s_t _c_h_a_r _*_t_i_m_e_s_p_e_c, _c_o_n_s_t _c_h_a_r _*_d_e_f___u_n_i_t);
-
- _v_o_i_d
- pprriinntt__ttiimmee__ttaabbllee(_F_I_L_E _*_f);
-
- _s_i_z_e___t
- uunnppaarrssee__ttiimmee(_i_n_t _s_e_c_o_n_d_s, _c_h_a_r _*_b_u_f, _s_i_z_e___t _l_e_n);
-
- _s_i_z_e___t
- uunnppaarrssee__ttiimmee__aapppprrooxx(_i_n_t _s_e_c_o_n_d_s, _c_h_a_r _*_b_u_f, _s_i_z_e___t _l_e_n);
-
-DDEESSCCRRIIPPTTIIOONN
- The ppaarrssee__ttiimmee() function converts a the period of time specified in into
- a number of seconds. The _t_i_m_e_s_p_e_c can be any number of <number unit>
- pairs separated by comma and whitespace. The number can be negative. Num-
- ber without explicit units are taken as being _d_e_f___u_n_i_t.
-
- The uunnppaarrssee__ttiimmee() and uunnppaarrssee__ttiimmee__aapppprrooxx() does the opposite of
- ppaarrssee__ttiimmee(), that is they take a number of seconds and express that as
- human readable string. _u_n_p_a_r_s_e___t_i_m_e produces an exact time, while
- _u_n_p_a_r_s_e___t_i_m_e___a_p_p_r_o_x restricts the result to only include one units.
-
- pprriinntt__ttiimmee__ttaabbllee() prints a descriptive list of available units on the
- passed file descriptor.
-
- The possible units include:
- second, s
- minute, m
- hour, h
- day
- week seven days
- month 30 days
- year 365 days
-
- Units names can be arbitrarily abbreviated (as long as they are unique).
-
-RREETTUURRNN VVAALLUUEESS
- ppaarrssee__ttiimmee() returns the number of seconds that represents the expression
- in _t_i_m_e_s_p_e_c or -1 on error. uunnppaarrssee__ttiimmee() and uunnppaarrssee__ttiimmee__aapppprrooxx()
- return the number of characters written to _b_u_f. if the return value is
- greater than or equal to the _l_e_n argument, the string was too short and
- some of the printed characters were discarded.
-
-EEXXAAMMPPLLEESS
- #include <stdio.h>
- #include <parse_time.h>
-
- int
- main(int argc, char **argv)
- {
- int i;
- int result;
- char buf[128];
- print_time_table(stdout);
- for (i = 1; i < argc; i++) {
- result = parse_time(argv[i], "second");
- if(result == -1) {
- fprintf(stderr, "%s: parse error\n", argv[i]);
- continue;
- }
- printf("--\n");
- printf("parse_time = %d\n", result);
- unparse_time(result, buf, sizeof(buf));
- printf("unparse_time = %s\n", buf);
- unparse_time_approx(result, buf, sizeof(buf));
- printf("unparse_time_approx = %s\n", buf);
- }
- return 0;
- }
-
- $ ./a.out "1 minute 30 seconds" "90 s" "1 y -1 s"
- 1 year = 365 days
- 1 month = 30 days
- 1 week = 7 days
- 1 day = 24 hours
- 1 hour = 60 minutes
- 1 minute = 60 seconds
- 1 second
- --
- parse_time = 90
- unparse_time = 1 minute 30 seconds
- unparse_time_approx = 1 minute
- --
- parse_time = 90
- unparse_time = 1 minute 30 seconds
- unparse_time_approx = 1 minute
- --
- parse_time = 31535999
- unparse_time = 12 months 4 days 23 hours 59 minutes 59 seconds
- unparse_time_approx = 12 months
-
-BBUUGGSS
- Since ppaarrssee__ttiimmee() returns -1 on error there is no way to parse "minus
- one second". Currently "s" at the end of units is ignored. This is a
- hack for English plural forms. If these functions are ever localised,
- this scheme will have to change.
-
-HEIMDAL October 31, 2004 HEIMDAL
Deleted: trunk/crypto/heimdal/lib/roken/rtbl.cat3
===================================================================
--- trunk/crypto/heimdal/lib/roken/rtbl.cat3 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/rtbl.cat3 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,151 +0,0 @@
-
-RTBL(3) BSD Library Functions Manual RTBL(3)
-
-NNAAMMEE
- rrttbbll__ccrreeaattee, rrttbbll__ddeessttrrooyy, rrttbbll__sseett__ffllaaggss, rrttbbll__ggeett__ffllaaggss,
- rrttbbll__sseett__pprreeffiixx, rrttbbll__sseett__sseeppaarraattoorr, rrttbbll__sseett__ccoolluummnn__pprreeffiixx,
- rrttbbll__sseett__ccoolluummnn__aaffffiixx__bbyy__iidd, rrttbbll__aadddd__ccoolluummnn, rrttbbll__aadddd__ccoolluummnn__bbyy__iidd,
- rrttbbll__aadddd__ccoolluummnn__eennttrryy, rrttbbll__aadddd__ccoolluummnn__eennttrryy__bbyy__iidd, rrttbbll__nneeww__rrooww,
- rrttbbll__ffoorrmmaatt -- format data in simple tables
-
-LLIIBBRRAARRYY
- The roken library (libroken, -lroken)
-
-SSYYNNOOPPSSIISS
- ##iinncclluuddee <<rrttbbll..hh>>
-
- _i_n_t
- rrttbbll__aadddd__ccoolluummnn(_r_t_b_l___t _t_a_b_l_e, _c_o_n_s_t _c_h_a_r _*_c_o_l_u_m_n___n_a_m_e,
- _u_n_s_i_g_n_e_d _i_n_t _f_l_a_g_s);
-
- _i_n_t
- rrttbbll__aadddd__ccoolluummnn__bbyy__iidd(_r_t_b_l___t _t_a_b_l_e, _u_n_s_i_g_n_e_d _i_n_t _c_o_l_u_m_n___i_d,
- _c_o_n_s_t _c_h_a_r _*_c_o_l_u_m_n___h_e_a_d_e_r, _u_n_s_i_g_n_e_d _i_n_t _f_l_a_g_s);
-
- _i_n_t
- rrttbbll__aadddd__ccoolluummnn__eennttrryy(_r_t_b_l___t _t_a_b_l_e, _c_o_n_s_t _c_h_a_r _*_c_o_l_u_m_n___n_a_m_e,
- _c_o_n_s_t _c_h_a_r _*_c_e_l_l___e_n_t_r_y);
-
- _i_n_t
- rrttbbll__aadddd__ccoolluummnn__eennttrryy__bbyy__iidd(_r_t_b_l___t _t_a_b_l_e, _u_n_s_i_g_n_e_d _i_n_t _c_o_l_u_m_n___i_d,
- _c_o_n_s_t _c_h_a_r _*_c_e_l_l___e_n_t_r_y);
-
- _r_t_b_l___t
- rrttbbll__ccrreeaattee(_v_o_i_d);
-
- _v_o_i_d
- rrttbbll__ddeessttrrooyy(_r_t_b_l___t _t_a_b_l_e);
-
- _i_n_t
- rrttbbll__nneeww__rrooww(_r_t_b_l___t _t_a_b_l_e);
-
- _i_n_t
- rrttbbll__sseett__ccoolluummnn__aaffffiixx__bbyy__iidd(_r_t_b_l___t _t_a_b_l_e, _u_n_s_i_g_n_e_d _i_n_t _c_o_l_u_m_n___i_d, _c_o_n_s_t,
- _c_h_a_r, _*_p_r_e_f_i_x_", _c_o_n_s_t _c_h_a_r _*_s_u_f_f_i_x);
-
- _i_n_t
- rrttbbll__sseett__ccoolluummnn__pprreeffiixx(_r_t_b_l___t _t_a_b_l_e, _c_o_n_s_t _c_h_a_r _*_c_o_l_u_m_n___n_a_m_e,
- _c_o_n_s_t _c_h_a_r _*_p_r_e_f_i_x);
-
- _u_n_s_i_g_n_e_d _i_n_t
- rrttbbll__ggeett__ffllaaggss(_r_t_b_l___t _t_a_b_l_e);
-
- _v_o_i_d
- rrttbbll__sseett__ffllaaggss(_r_t_b_l___t _t_a_b_l_e, _u_n_s_i_g_n_e_d _i_n_t _f_l_a_g_s);
-
- _i_n_t
- rrttbbll__sseett__pprreeffiixx(_r_t_b_l___t _t_a_b_l_e, _c_o_n_s_t _c_h_a_r _*_p_r_e_f_i_x);
-
- _i_n_t
- rrttbbll__sseett__sseeppaarraattoorr(_r_t_b_l___t _t_a_b_l_e, _c_o_n_s_t _c_h_a_r _*_s_e_p_a_r_a_t_o_r);
-
- _i_n_t
- rrttbbll__ffoorrmmaatt(_r_t_b_l___t _t_a_b_l_e, _F_I_L_E, _*_f_i_l_e_");
-
-DDEESSCCRRIIPPTTIIOONN
- This set of functions assemble a simple table consisting of rows and col-
- umns, allowing it to be printed with certain options. Typical use would
- be output from tools such as ls(1) or netstat(1), where you have a fixed
- number of columns, but don't know the column widths before hand.
-
- A table is created with rrttbbll__ccrreeaattee() and destroyed with rrttbbll__ddeessttrrooyy().
-
- Global flags on the table are set with _r_t_b_l___s_e_t___f_l_a_g_s and retrieved with
- _r_t_b_l___g_e_t___f_l_a_g_s. At present the only defined flag is
- RTBL_HEADER_STYLE_NONE which suppresses printing the header.
-
- Before adding data to the table, one or more columns need to be created.
- This would normally be done with rrttbbll__aadddd__ccoolluummnn__bbyy__iidd(), _c_o_l_u_m_n___i_d is
- any number of your choice (it's used only to identify columns),
- _c_o_l_u_m_n___h_e_a_d_e_r is the header to print at the top of the column, and _f_l_a_g_s
- are flags specific to this column. Currently the only defined flag is
- RTBL_ALIGN_RIGHT, aligning column entries to the right. Columns are
- printed in the order they are added.
-
- There's also a way to add columns by column name with rrttbbll__aadddd__ccoolluummnn(),
- but this is less flexible (you need unique header names), and is consid-
- ered deprecated.
-
- To add data to a column you use rrttbbll__aadddd__ccoolluummnn__eennttrryy__bbyy__iidd(), where the
- _c_o_l_u_m_n___i_d is the same as when the column was added (adding data to a non-
- existent column is undefined), and _c_e_l_l___e_n_t_r_y is whatever string you wish
- to include in that cell. It should not include newlines. For columns
- added with rrttbbll__aadddd__ccoolluummnn() you must use rrttbbll__aadddd__ccoolluummnn__eennttrryy()
- instead.
-
- rrttbbll__nneeww__rrooww() fills all columns with blank entries until they all have
- the same number of rows.
-
- Each column can have a separate prefix and suffix, set with
- _r_t_b_l___s_e_t___c_o_l_u_m_n___a_f_f_i_x___b_y___i_d; _r_t_b_l___s_e_t___c_o_l_u_m_n___p_r_e_f_i_x allows setting the
- prefix only by column name. In addition to this, columns may be separated
- by a string set with _r_t_b_l___s_e_t___s_e_p_a_r_a_t_o_r (by default columns are not
- seprated by anything).
-
- The finished table is printed to _f_i_l_e with _r_t_b_l___f_o_r_m_a_t.
-
-EEXXAAMMPPLLEESS
- This program:
-
- #include <stdio.h>
- #include <rtbl.h>
- int
- main(int argc, char **argv)
- {
- rtbl_t table;
- table = rtbl_create();
- rtbl_set_separator(table, " ");
- rtbl_add_column_by_id(table, 0, "Column A", 0);
- rtbl_add_column_by_id(table, 1, "Column B", RTBL_ALIGN_RIGHT);
- rtbl_add_column_by_id(table, 2, "Column C", 0);
- rtbl_add_column_entry_by_id(table, 0, "A-1");
- rtbl_add_column_entry_by_id(table, 0, "A-2");
- rtbl_add_column_entry_by_id(table, 0, "A-3");
- rtbl_add_column_entry_by_id(table, 1, "B-1");
- rtbl_add_column_entry_by_id(table, 2, "C-1");
- rtbl_add_column_entry_by_id(table, 2, "C-2");
- rtbl_add_column_entry_by_id(table, 1, "B-2");
- rtbl_add_column_entry_by_id(table, 1, "B-3");
- rtbl_add_column_entry_by_id(table, 2, "C-3");
- rtbl_add_column_entry_by_id(table, 0, "A-4");
- rtbl_new_row(table);
- rtbl_add_column_entry_by_id(table, 1, "B-4");
- rtbl_new_row(table);
- rtbl_add_column_entry_by_id(table, 2, "C-4");
- rtbl_new_row(table);
- rtbl_format(table, stdout);
- rtbl_destroy(table);
- return 0;
- }
-
- will output the following:
-
- Column A Column B Column C
- A-1 B-1 C-1
- A-2 B-2 C-2
- A-3 B-3 C-3
- A-4
- B-4
- C-4
-
-HEIMDAL June 26, 2004 HEIMDAL
Deleted: trunk/crypto/heimdal/lib/roken/snprintf-test.h
===================================================================
--- trunk/crypto/heimdal/lib/roken/snprintf-test.h 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/snprintf-test.h 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 2001 Kungliga Tekniska H\xF6gskolan
- * (Royal Institute of Technology, Stockholm, Sweden).
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * 3. Neither the name of KTH nor the names of its contributors may be
- * used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY KTH AND ITS CONTRIBUTORS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KTH OR ITS CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/* $Id: snprintf-test.h,v 1.1.1.3 2012-07-21 15:09:07 laffer1 Exp $ */
-
-#ifndef __SNPRINTF_TEST_H__
-#define __SNPRINTF_TEST_H__
-
-/*
- * we cannot use the real names of the functions when testing, since
- * they might have different prototypes as the system functions, hence
- * these evil hacks
- */
-
-#define snprintf test_snprintf
-#define asprintf test_asprintf
-#define asnprintf test_asnprintf
-#define vasprintf test_vasprintf
-#define vasnprintf test_vasnprintf
-#define vsnprintf test_vsnprintf
-
-#endif /* __SNPRINTF_TEST_H__ */
Deleted: trunk/crypto/heimdal/lib/roken/tsearch-test.c
===================================================================
--- trunk/crypto/heimdal/lib/roken/tsearch-test.c 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/tsearch-test.c 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,125 +0,0 @@
-/*
- * Tree search generalized from Knuth (6.2.2) Algorithm T just like
- * the AT&T man page says.
- *
- * The node_t structure is for internal use only, lint doesn't grok it.
- *
- * Written by reading the System V Interface Definition, not the code.
- *
- * Totally public domain.
- */
-
-#include <config.h>
-
-#include "roken.h"
-#include "search.h"
-
-struct node {
- char *string;
- int order;
-};
-
-extern void *rk_tdelete(const void *, void **,
- int (*)(const void *, const void *));
-extern void *rk_tfind(const void *, void * const *,
- int (*)(const void *, const void *));
-extern void *rk_tsearch(const void *, void **, int (*)(const void *, const void *));
-extern void rk_twalk(const void *, void (*)(const void *, VISIT, int));
-
-void *rootnode = NULL;
-int numerr = 0;
-
-/*
- * This routine compares two nodes, based on an
- * alphabetical ordering of the string field.
- */
-int
-node_compare(const void *node1, const void *node2)
-{
- return strcmp(((const struct node *) node1)->string,
- ((const struct node *) node2)->string);
-}
-
-static int walkorder = -1;
-
-void
-list_node(const void *ptr, VISIT order, int level)
-{
- const struct node *p = *(const struct node **) ptr;
-
- if (order == postorder || order == leaf) {
- walkorder++;
- if (p->order != walkorder) {
- warnx("sort failed: expected %d next, got %d\n", walkorder,
- p->order);
- numerr++;
- }
- }
-}
-
-int
-main(int argc, char **argv)
-{
- int numtest = 1;
- struct node *t, *p, tests[] = {
- { "", 0 },
- { "ab", 3 },
- { "abc", 4 },
- { "abcdefg", 8 },
- { "abcd", 5 },
- { "a", 2 },
- { "abcdef", 7 },
- { "abcde", 6 },
- { "=", 1 },
- { NULL }
- };
-
- for(t = tests; t->string; t++) {
- /* Better not be there */
- p = (struct node *)rk_tfind((void *)t, (void **)&rootnode,
- node_compare);
-
- if (p) {
- warnx("erroneous list: found %d\n", p->order);
- numerr++;
- }
-
- /* Put node into the tree. */
- p = (struct node *) rk_tsearch((void *)t, (void **)&rootnode,
- node_compare);
-
- if (!p) {
- warnx("erroneous list: missing %d\n", t->order);
- numerr++;
- }
- }
-
- rk_twalk(rootnode, list_node);
-
- for(t = tests; t->string; t++) {
- /* Better be there */
- p = (struct node *) rk_tfind((void *)t, (void **)&rootnode,
- node_compare);
-
- if (!p) {
- warnx("erroneous list: missing %d\n", t->order);
- numerr++;
- }
-
- /* pull out node */
- (void) rk_tdelete((void *)t, (void **)&rootnode,
- node_compare);
-
- /* Better not be there */
- p = (struct node *) rk_tfind((void *)t, (void **)&rootnode,
- node_compare);
-
- if (p) {
- warnx("erroneous list: found %d\n", p->order);
- numerr++;
- }
-
- }
-
- return numerr;
-}
Deleted: trunk/crypto/heimdal/lib/roken/vis.h
===================================================================
--- trunk/crypto/heimdal/lib/roken/vis.h 2015-07-24 22:40:44 UTC (rev 7138)
+++ trunk/crypto/heimdal/lib/roken/vis.h 2015-07-25 04:23:17 UTC (rev 7139)
@@ -1,115 +0,0 @@
-/* $NetBSD: vis.h,v 1.11 1999/11/25 16:55:50 wennmach Exp $ */
-/* $Id: vis.h,v 1.1.1.1 2012-07-21 15:09:07 laffer1 Exp $ */
-
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)vis.h 8.1 (Berkeley) 6/2/93
- */
-
-#ifndef _VIS_H_
-#define _VIS_H_
-
-#ifndef ROKEN_LIB_FUNCTION
-#ifdef _WIN32
-#define ROKEN_LIB_FUNCTION _stdcall
-#else
-#define ROKEN_LIB_FUNCTION
-#endif
-#endif
-
-/*
- * to select alternate encoding format
- */
-#define VIS_OCTAL 0x01 /* use octal \ddd format */
-#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropiate */
-
-/*
- * to alter set of characters encoded (default is to encode all
- * non-graphic except space, tab, and newline).
- */
-#define VIS_SP 0x04 /* also encode space */
-#define VIS_TAB 0x08 /* also encode tab */
-#define VIS_NL 0x10 /* also encode newline */
-#define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL)
-#define VIS_SAFE 0x20 /* only encode "unsafe" characters */
-
-/*
- * other
- */
-#define VIS_NOSLASH 0x40 /* inhibit printing '\' */
-
-/*
- * unvis return codes
- */
-#define UNVIS_VALID 1 /* character valid */
-#define UNVIS_VALIDPUSH 2 /* character valid, push back passed char */
-#define UNVIS_NOCHAR 3 /* valid sequence, no character produced */
-#define UNVIS_SYNBAD -1 /* unrecognized escape sequence */
-#define UNVIS_ERROR -2 /* decoder in unknown state (unrecoverable) */
-
-/*
- * unvis flags
- */
-#define UNVIS_END 1 /* no more characters */
-
-char ROKEN_LIB_FUNCTION
- *rk_vis (char *, int, int, int);
-char ROKEN_LIB_FUNCTION
- *rk_svis (char *, int, int, int, const char *);
-int ROKEN_LIB_FUNCTION
- rk_strvis (char *, const char *, int);
-int ROKEN_LIB_FUNCTION
- rk_strsvis (char *, const char *, int, const char *);
-int ROKEN_LIB_FUNCTION
- rk_strvisx (char *, const char *, size_t, int);
-int ROKEN_LIB_FUNCTION
- rk_strsvisx (char *, const char *, size_t, int, const char *);
-int ROKEN_LIB_FUNCTION
- rk_strunvis (char *, const char *);
-int ROKEN_LIB_FUNCTION
- rk_unvis (char *, int, int *, int);
-
-#undef vis
-#define vis(a,b,c,d) rk_vis(a,b,c,d)
-#undef svis
-#define svis(a,b,c,d,e) rk_svis(a,b,c,d,e)
-#undef strvis
-#define strvis(a,b,c) rk_strvis(a,b,c)
-#undef strsvis
-#define strsvis(a,b,c,d) rk_strsvis(a,b,c,d)
-#undef strvisx
-#define strvisx(a,b,c,d) rk_strvisx(a,b,c,d)
-#undef strsvisx
-#define strsvisx(a,b,c,d,e) rk_strsvisx(a,b,c,d,e)
-#undef strunvis
-#define strunvis(a,b) rk_strunvis(a,b)
-#undef unvis
-#define unvis(a,b,c,d) rk_unvis(a,b,c,d)
-
-#endif /* !_VIS_H_ */
More information about the Midnightbsd-cvs
mailing list