aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/tasn_prn.c
Commit message (Collapse)AuthorAgeFilesLines
* Print <ABSENT> if a STACK is NULL.Dr. Stephen Henson2016-09-291-1/+2
| | | | | | | If a STACK (corresponding to SEQUENCE OF or SET OF) is NULL then the field is absent as opposed to empty (present but has zero elements). Reviewed-by: Rich Salz <rsalz@openssl.org>
* Constify some X509_NAME, ASN1 printing codeFdaSilvaYY2016-08-231-2/+2
| | | | | | | ASN1_buf_print, asn1_print_*, X509_NAME_oneline, X509_NAME_print Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Constify ASN1_PCTX_*FdaSilvaYY2016-08-231-7/+7
| | | | | | | ... add a static keyword. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Enforce and explicit some const castingFdaSilvaYY2016-07-251-1/+1
| | | | | Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1300)
* Check and print out boolean type properly.Dr. Stephen Henson2016-07-191-4/+10
| | | | | | If underlying type is boolean don't check field is NULL. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Return error when trying to print invalid ASN1 integerKurt Roeckx2016-07-161-0/+2
| | | | | Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #1322
* Spelling... and more spellingFdaSilvaYY2016-06-221-1/+1
| | | | | Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1245)
* Copyright consolidation 08/10Rich Salz2016-05-171-54/+5
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* support embed in ASN.1 printDr. Stephen Henson2016-05-041-0/+11
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove unused parameters from internal functionsRich Salz2016-02-221-12/+8
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove /* foo.c */ commentsRich Salz2016-01-261-1/+0
| | | | | | | | | | | | This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Enable -Wmissing-variable-declarations andBen Laurie2015-09-111-1/+1
| | | | | | | -Wincompatible-pointer-types-discards-qualifiers (the latter did not require any code changes). Reviewed-by: Rich Salz <rsalz@openssl.org>
* remove 0 assignments.Rich Salz2015-09-031-6/+2
| | | | | | | After openssl_zalloc, cleanup more "set to 0/NULL" assignments. Many are from github feedback. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Identify and move common internal libcrypto header filesRichard Levitte2015-05-141-1/+1
| | | | | | | | | | | | | There are header files in crypto/ that are used by a number of crypto/ submodules. Move those to crypto/include/internal and adapt the affected source code and Makefiles. The header files that got moved are: crypto/cryptolib.h crypto/md32_common.h Reviewed-by: Rich Salz <rsalz@openssl.org>
* Use safer sizeof variant in mallocRich Salz2015-05-041-1/+1
| | | | | | | | | | | | | For a local variable: TYPE *p; Allocations like this are "risky": p = OPENSSL_malloc(sizeof(TYPE)); if the type of p changes, and the malloc call isn't updated, you could get memory corruption. Instead do this: p = OPENSSL_malloc(sizeof(*p)); Also fixed a few memset() calls that I noticed while doing this. Reviewed-by: Richard Levitte <levitte@openssl.org>
* free null cleanup finaleRich Salz2015-05-011-2/+1
| | | | | | Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
* free NULL cleanup 8Rich Salz2015-04-301-1/+2
| | | | | | | | | | Do not check for NULL before calling a free routine. This addresses: ASN1_BIT_STRING_free ASN1_GENERALIZEDTIME_free ASN1_INTEGER_free ASN1_OBJECT_free ASN1_OCTET_STRING_free ASN1_PCTX_free ASN1_SCTX_free ASN1_STRING_clear_free ASN1_STRING_free ASN1_TYPE_free ASN1_UTCTIME_free M_ASN1_free_of Reviewed-by: Richard Levitte <levitte@openssl.org>
* Code style: space after 'if'Viktor Dukhovni2015-04-161-1/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Move internal only ASN.1 functions to asn1_locl.hDr. Stephen Henson2015-03-251-0/+1
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* make X509_NAME opaqueDr. Stephen Henson2015-03-251-1/+1
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* ASN.1 print fix.Dr. Stephen Henson2015-03-121-0/+1
| | | | | | | When printing out an ASN.1 structure if the type is an item template don't fall thru and attempt to interpret as a primitive type. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Fix asn1_item_print_ctxMatt Caswell2015-03-121-0/+2
| | | | | | | The call to asn1_do_adb can return NULL on error, so we should check the return value before attempting to use it. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Dead code removal: #if 0 asn1, pkcs7Rich Salz2015-01-301-9/+0
| | | | | | | Keep one #if 0 but rename the symbol to be more descriptive of what it's doing (you can disable support for old broken Netscape software). Reviewed-by: Tim Hudson <tjh@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-495/+450
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT1815: More const'ness improvementsJustin Blanchard2014-08-181-2/+2
| | | | | | | | Add a dozen more const declarations where appropriate. These are from Justin; while adding his patch, I noticed ASN1_BIT_STRING_check could be fixed, too. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* ans1/tasn_prn.c: avoid bool in variable names.Andy Polyakov2012-03-291-6/+6
| | | | PR: 2776
* Update obsolete email address...Dr. Stephen Henson2008-11-051-1/+1
|
* More type-checking.Ben Laurie2008-06-041-2/+5
|
* Support custom primitive type printing routines and add one to LONG type.Dr. Stephen Henson2008-02-081-0/+4
|
* Initial, incomplete support for typesafe macros without using functionDr. Stephen Henson2006-11-161-1/+1
| | | | casts.
* Print out zero length string properly.Dr. Stephen Henson2006-04-141-1/+2
|
* Fix for Win32.Dr. Stephen Henson2005-09-161-3/+3
|
* Update to ASN1 printing code.Dr. Stephen Henson2005-09-031-3/+31
|
* Update ASN1 printing code and add a -print option to 'pkcs7' utility forDr. Stephen Henson2005-09-011-0/+3
| | | | initial testing.
* Initial support for ASN1 print code.Dr. Stephen Henson2005-09-011-20/+0
| | | | | WARNING WARNING WARNING, experimental code, handle with care, use at your own risk, may contain nuts.
* New version of ASN1 print code, still not compiled in though.Dr. Stephen Henson2005-08-201-62/+160
|
* Update ASN1 printing code. Highly experimental, not working properly (neitherDr. Stephen Henson2005-07-261-98/+410
| | | | did the old code) and not compiled in yet...
* Security fixes brought forward from 0.9.7.Ben Laurie2002-11-131-1/+1
|
* Vade retro C++ comments!Richard Levitte2001-07-311-1/+3
| | | | (Latin for "comments", anyone?)
* Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson2000-12-081-0/+196
to main trunk. Lets see if the makes it to openssl-cvs :-)