aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/a_bitstr.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-26Remove /* foo.c */ commentsRich Salz1-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>
2015-12-22Rename *_realloc_clean to *_clear_reallocRich Salz1-1/+1
Just like *_clear_free routines. Previously undocumented, used a half-dozen times within OpenSSL source. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-05-14Identify and move common internal libcrypto header filesRichard Levitte1-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>
2015-05-01free null cleanup finaleRich Salz1-2/+1
Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-28realloc of NULL is like mallocRich Salz1-4/+1
ANSI C, and OpenSSL's malloc wrapper do this, also. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-28remove malloc castsRich Salz1-4/+3
Following ANSI C rules, remove the casts from calls to OPENSSL_malloc and OPENSSL_realloc. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move more internal only functions to asn1_locl.hDr. Stephen Henson1-0/+1
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-24free NULL cleanupRich Salz1-1/+1
Start ensuring all OpenSSL "free" routines allow NULL, and remove any if check before calling them. This gets ASN1_OBJECT_free and ASN1_STRING_free. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-23Remove old ASN.1 code.Dr. Stephen Henson1-3/+3
Remove old M_ASN1_ macros and replace any occurences with the corresponding function. Remove d2i_ASN1_bytes, d2i_ASN1_SET, i2d_ASN1_SET: no longer used internally. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-180/+189
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-18Return error when a bit string indicates an invalid amount of bits leftKurt Roeckx1-1/+6
Reviewed-by: Matt Caswell <matt@openssl.org>
2014-08-18RT1815: More const'ness improvementsJustin Blanchard1-3/+3
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>
2008-11-12Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe1-14/+14
knock-on work than expected - they've been extracted into a patch series that can be completed elsewhere, or in a different branch, before merging back to HEAD.
2008-11-01size_tification.Ben Laurie1-14/+14
2006-02-12RFC 3161 compliant time stamp request creation, response generationUlf Möller1-0/+23
and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
2005-07-26improved error checking and some fixesNils Larsch1-1/+3
PR: 1170 Submitted by: Yair Elharrar Reviewed and edited by: Nils Larsch
2005-04-26Fix various incorrect error function codes.Bodo Möller1-1/+1
("perl util/ck_errf.pl */*.c */*/*.c" still reports many more.)
2004-12-12Remove duplicate lines.Dr. Stephen Henson1-1/+0
2004-12-05Add lots of checks for memory allocation failure, error codes to indicateDr. Stephen Henson1-1/+6
failure and freeing up memory if a failure occurs. PR:620
2004-03-15Constify d2i, s2i, c2i and r2i functions and other associatedRichard Levitte1-3/+4
functions and macros. This change has associated tags: LEVITTE_before_const and LEVITTE_after_const. Those will be removed when this change has been properly reviewed.
2002-11-13Security fixes brought forward from 0.9.7.Ben Laurie1-1/+3
2002-08-23Reinstate the check for invalid length BIT STRINGS,Dr. Stephen Henson1-0/+6
which was effectively bypassed in the ASN1 changed.
2002-05-29Make i2c_ASN1_BIT_STRING return the correct length.Dr. Stephen Henson1-2/+4
2002-02-03ASN1_BIT_STRING_set_bit() didn't clear previously set bitsRichard Levitte1-0/+1
2000-12-08Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson1-52/+0
to main trunk. Lets see if the makes it to openssl-cvs :-)
2000-08-06For n > 7, we might get uninitialized (unzeroed) data.Richard Levitte1-2/+2
Spotted by "Kyoungho Jeon" <k.h.jeon@securesoft.co.kr>.
2000-07-10Fix some typose in the i2d/d2i functions thatDr. Stephen Henson1-1/+1
call the i2c/c2i (they were not using the content length for the headers). Fix ASN1 long form tag encoding. This never worked but it was never tested since it is only used for tags > 30. New options to smime program to allow the PKCS#7 format to be specified and the content supplied externally.
2000-07-07New ASN1 functions that just deal withDr. Stephen Henson1-17/+45
content octets, not tag+length.
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte1-4/+4
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
2000-01-30Seek out and destroy another evil cast.Ulf Möller1-1/+1
1999-10-23Don't return stuff from void functions.Ben Laurie1-1/+1
1999-10-20Replace the macros in asn1.h with function equivalents. Also make UTF8StringsDr. Stephen Henson1-2/+11
tolerated in certificates.
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller1-4/+0
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1-1/+1
Submitted by: Reviewed by: PR:
1999-04-19Change functions to ANSI C.Ulf Möller1-14/+5
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall1-11/+42
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1-1/+47
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1-0/+158