Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
ccfaf2ab
Commit
ccfaf2ab
authored
Jan 21, 2019
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
weeded the library out of unber program
parent
8e1d7591
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
821 additions
and
727 deletions
+821
-727
.gitignore
.gitignore
+2
-2
asn1-tools/unber/Makefile.am
asn1-tools/unber/Makefile.am
+7
-1
asn1-tools/unber/libasn1_unber_tool.c
asn1-tools/unber/libasn1_unber_tool.c
+754
-0
asn1-tools/unber/libasn1_unber_tool.h
asn1-tools/unber/libasn1_unber_tool.h
+45
-0
asn1-tools/unber/unber.c
asn1-tools/unber/unber.c
+13
-724
No files found.
.gitignore
View file @
ccfaf2ab
...
...
@@ -36,8 +36,8 @@ stamp-h*
/asn1c/asn1c
# /asn1c-tools
/asn1-tools/enber
/asn1-tools/unber
/asn1-tools/enber
/enber
/asn1-tools/unber
/unber
# /skeletons
/skeletons/check-*
...
...
asn1-tools/unber/Makefile.am
View file @
ccfaf2ab
...
...
@@ -6,6 +6,12 @@ AM_CPPFLAGS = \
-I
${top_srcdir}
/libasn1parser
\
-I
${top_srcdir}
/skeletons
unber_LDADD
=
$(top_builddir)
/libasn1common/libasn1common.la
noinst_LTLIBRARIES
=
libasn1-unber-tool.la
libasn1_unber_tool_la_SOURCES
=
\
libasn1_unber_tool.c libasn1_unber_tool.h
unber_LDADD
=
libasn1-unber-tool.la
\
$(top_builddir)
/libasn1common/libasn1common.la
bin_PROGRAMS
=
unber
asn1-tools/unber/libasn1_unber_tool.c
0 → 100644
View file @
ccfaf2ab
This diff is collapsed.
Click to expand it.
asn1-tools/unber/libasn1_unber_tool.h
0 → 100644
View file @
ccfaf2ab
/*
* Copyright (c) 2004-2019 Lev Walkin <vlm@lionet.info>.
* 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.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
*
*/
/* Set global options. */
void
set_minimalistic_output
(
int
v
);
void
set_single_type_decoding
(
int
v
);
void
set_pretty_printing
(
int
v
);
int
set_skip_bytes
(
long
v
);
int
set_indent_size
(
int
indent_size
);
/*
* Convert BER-encoded file into the low level non-standard XML-like structure.
* Primarily used for manual debugging.
*/
int
unber_file
(
const
char
*
fname
);
/*
* Decode the TLV given by the given string.
*/
int
decode_tlv_from_hex_string
(
const
char
*
datastring
);
asn1-tools/unber/unber.c
View file @
ccfaf2ab
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment