aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/d2i_pr.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-18Remove parentheses of return.KaoruToda1-3/+3
Since return is inconsistent, I removed unnecessary parentheses and unified them. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4541)
2016-05-17Copyright consolidation 08/10Rich Salz1-54/+6
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-05-04Fix double free in d2i_PrivateKey().Dr. Stephen Henson1-3/+5
RT#4527 Reviewed-by: Matt Caswell <matt@openssl.org>
2016-03-20Remove #error from include files.Rich Salz1-3/+1
Don't have #error statements in header files, but instead wrap the contents of that file in #ifndef OPENSSL_NO_xxx This means it is now always safe to include the header file. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-25GH715: ENGINE_finish can take NULLRich Salz1-4/+2
Simplifies calling code. Also fixed up any !ptr tests that were nearby, turning them into NULL tests. Reviewed-by: Richard Levitte <levitte@openssl.org>
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>
2016-01-20make EVP_PKEY opaqueDr. Stephen Henson1-0/+1
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-03Fix more d2i cases to properly update the input pointerKurt Roeckx1-3/+5
Thanks to David Benjamin <davidben@google.com> for pointing them out. Reviewed-by: Steve Henson <steve@openssl.org> MR #1198
2015-09-14d2i: don't update input pointer on failureKurt Roeckx1-3/+8
Reviewed-by: Dr. Stephen Henson <steve@openssl.org> MR #1005
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-03-28free NULL cleanupRich Salz1-1/+1
EVP_.*free; this gets: EVP_CIPHER_CTX_free EVP_PKEY_CTX_free EVP_PKEY_asn1_free EVP_PKEY_asn1_set_free EVP_PKEY_free EVP_PKEY_free_it EVP_PKEY_meth_free; and also EVP_CIPHER_CTX_cleanup Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-24Move some ASN.1 internals to asn1_int.hDr. Stephen Henson1-1/+1
Move ASN.1 internals used across multiple directories into new internal header file asn1_int.h remove crypto/Makefile hack which allowed other directories to include "asn1_locl.h" Reviewed-by: Matt Caswell <matt@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-94/+92
Reviewed-by: Tim Hudson <tjh@openssl.org>
2008-11-12Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe1-1/+1
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-01More size_tification.Ben Laurie1-1/+1
2007-11-20Submitted by: "Victor B. Wagner" <vitus@cryptocom.ru>Dr. Stephen Henson1-3/+35
Make {d2i,i2d}_PrivateKey() fall back to PKCS#8 format if no legacy format supported. Add support in d2i_AutoPrivateKey().
2006-11-16Initial, incomplete support for typesafe macros without using functionDr. Stephen Henson1-2/+1
casts.
2006-06-05Fix obvious typo.Andy Polyakov1-1/+1
2006-06-05Clarify comment and add #ifdef.Dr. Stephen Henson1-0/+4
2006-06-05Complete EVP_PKEY_ASN1_METHOD ENGINE support.Dr. Stephen Henson1-12/+15
2006-03-23Add support for legacy PEM format private keys in EVP_PKEY_ASN1_METHOD.Dr. Stephen Henson1-37/+7
2006-03-22Make EVP_PKEY_ASN1_METHOD opaque. Add application level functions toDr. Stephen Henson1-1/+1
initialize it. Initial support for application added public key ASN1.
2006-03-20Transfer parameter handling and key comparison to algorithm methods.Dr. Stephen Henson1-0/+1
2005-05-16ecc api cleanup; summary:Nils Larsch1-1/+1
- hide the EC_KEY structure definition in ec_lcl.c + add some functions to use/access the EC_KEY fields - change the way how method specific data (ecdsa/ecdh) is attached to a EC_KEY - add ECDSA_sign_ex and ECDSA_do_sign_ex functions with additional parameters for pre-computed values - rebuild libeay.num from 0.9.7
2004-03-15Constify d2i, s2i, c2i and r2i functions and other associatedRichard Levitte1-3/+3
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-08-07use a generic EC_KEY structure (EC keys are not ECDSA specific)Bodo Möller1-6/+6
Submitted by: Nils Larsch
2002-02-13ECDSA supportBodo Möller1-1/+17
Submitted by: Nils Larsch <nla@trustcenter.de>
2001-12-01NO_DSA, NO_RSA patches.Dr. Stephen Henson1-0/+4
2001-08-03Header bloat reduction for EVP_PKEY.Ben Laurie1-0/+2
2001-02-19Make all configuration macros available for application by makingRichard Levitte1-2/+2
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2000-11-07Constify DSA-related code.Richard Levitte1-1/+2
2000-11-06Constify the RSA parts of the ASN.1 library. Note some ugly castsRichard Levitte1-1/+2
that are needed in the ASN.1 macros. Hopefully, we can get rid of those in an elegant way in the future.
2000-02-03ispell (and minor modifications)Ulf Möller1-1/+1
2000-01-01Fix some of the command line password stuff. New functionDr. Stephen Henson1-0/+23
that can automatically determine the type of a DER encoded "traditional" format private key and change some of the d2i functions to use it instead of requiring the application to work out the key type.
1999-07-24Don't include x509.h when we just need asn1.hBodo Möller1-1/+1
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1-4/+4
Submitted by: Reviewed by: PR:
1999-04-19Change functions to ANSI C.Ulf Möller1-5/+2
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall1-1/+1
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1-1/+1
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1-0/+117