aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/x_pubkey.c
AgeCommit message (Collapse)AuthorFilesLines
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-30free NULL cleanup 5aRich Salz1-6/+3
Don't check for NULL before calling a free routine. This gets X509_.*free: x509_name_ex_free X509_policy_tree_free X509_VERIFY_PARAM_free X509_STORE_free X509_STORE_CTX_free X509_PKEY_free X509_OBJECT_free_contents X509_LOOKUP_free X509_INFO_free Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28free NULL cleanupRich Salz1-2/+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-288/+274
Reviewed-by: Tim Hudson <tjh@openssl.org>
2012-05-11PR: 2813Dr. Stephen Henson1-1/+4
Reported by: Constantine Sapuntzakis <csapuntz@gmail.com> Fix possible deadlock when decoding public keys.
2012-02-28Fix memory leak cause by race condition when creating public keys.Dr. Stephen Henson1-1/+10
Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for reporting this bug.
2008-11-12Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe1-4/+4
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-4/+4
2006-06-05Complete EVP_PKEY_ASN1_METHOD ENGINE support.Dr. Stephen Henson1-21/+12
2006-03-22Make EVP_PKEY_ASN1_METHOD opaque. Add application level functions toDr. Stephen Henson1-2/+3
initialize it. Initial support for application added public key ASN1.
2006-03-20Initial support for pluggable public key ASN1 support. Process most publicDr. Stephen Henson1-226/+75
key ASN1 handling through a single EVP_PKEY_ASN1_METHOD structure and move the spaghetti algorithm specific code to a single ASN1 module for each algorithm.
2005-09-01Extend callback function to support print customization.Dr. Stephen Henson1-1/+2
2005-07-16makeNils Larsch1-0/+4
./configure no-deprecated [no-dsa] [no-dh] [no-ec] [no-rsa] make depend all test work again PR: 1159
2005-05-16ecc api cleanup; summary:Nils Larsch1-18/+24
- 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
2005-05-10give EC_GROUP_new_by_nid a more meanigful name:Nils Larsch1-1/+1
EC_GROUP_new_by_nid -> EC_GROUP_new_by_curve_name
2005-05-08give EC_GROUP_*_nid functions a more meaningful nameNils Larsch1-1/+1
EC_GROUP_get_nid -> EC_GROUP_get_curve_name EC_GROUP_set_nid -> EC_GROUP_set_curve_name
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-12/+39
failure and freeing up memory if a failure occurs. PR:620
2004-04-19(oops) Apologies all, that last header-cleanup commit was from the wrongGeoff Thorpe1-0/+2
tree. This further reduces header interdependencies, and makes some associated cleanups.
2004-03-15Constify d2i, s2i, c2i and r2i functions and other associatedRichard Levitte1-8/+8
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.
2003-11-10Avoid possible memory leaks in error-handling.Geoff Thorpe1-1/+1
Submitted by: Nils Larsch Reviewed by: Geoff Thorpe
2002-08-07use a generic EC_KEY structure (EC keys are not ECDSA specific)Bodo Möller1-32/+33
Submitted by: Nils Larsch
2002-06-12simplify asn1_flagBodo Möller1-3/+3
Submitted by: Nils Larsch Reviewed by: Bodo Moeller
2002-06-10move ECC ASN1 that is not specific to ECDSA into crypto/ec/,Bodo Möller1-5/+10
and make some appropriate changes to the EC library. Submitted by: Nils Larsch
2002-05-30Check the return values where memory allocation failures may happen.Richard Levitte1-2/+6
PR: 49
2002-04-20Do not free p if it hasn't been used yet.Richard Levitte1-2/+1
Notified by Bernd Matthes <bernd.matthes@gemplus.com>
2002-04-12ECDSA representation bugfixesBodo Möller1-23/+52
Submitted by: Nils Larsch
2002-04-09fix ECDSA handlingBodo Möller1-2/+0
Submitted by: Nils Larsch
2002-03-14Fixes for 'no-hw' combined with 'no-SOME_CIPHER'.Bodo Möller1-1/+3
Fix dsaparam usage output. Submitted by: Nils Larsch
2002-02-13ECDSA supportBodo Möller1-49/+174
Submitted by: Nils Larsch <nla@trustcenter.de>
2001-06-19cp is only used when DSA is built.Richard Levitte1-1/+1
2001-04-21Fix ASN1 bug when decoding OTHER type.Dr. Stephen Henson1-1/+1
Various S/MIME DSA related fixes.
2001-02-23Get rid of ASN1_ITEM_FUNCTIONS dummy functionDr. Stephen Henson1-1/+1
prototype hack. This unfortunately means that every ASN1_*_END construct cannot have a trailing ;
2001-02-19Make all configuration macros available for application by makingRichard Levitte1-5/+5
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-12-08Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson1-51/+14
to main trunk. Lets see if the makes it to openssl-cvs :-)
2000-11-07Constify DSA-related code.Richard Levitte1-2/+3
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte1-5/+5
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-03-22Fix a memory leak in PKCS12_parse.Dr. Stephen Henson1-0/+2
Don't copy private key to X509 etc public key structures. Fix for warning.
2000-02-26Rename functions for new convention.Dr. Stephen Henson1-4/+4
2000-01-30Seek out and destroy another evil cast.Ulf Möller1-1/+1
1999-12-24Fixes so NO_RSA works again.Dr. Stephen Henson1-1/+4
1999-11-21Transparent support for PKCS#8 private keys in RSA/DSA.Dr. Stephen Henson1-0/+107
New universal public key format. Fix CRL+cert load problem in by_file.c Make verify report errors when loading files or dirs
1999-10-20Replace the macros in asn1.h with function equivalents. Also make UTF8StringsDr. Stephen Henson1-3/+3
tolerated in certificates.
1999-07-21Torture weak compilers less by not automatically including x509.h whereBodo Möller1-0/+1
it is not needed.
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller1-5/+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-15/+7
1999-01-06Fix things so DH_free() will be no-op when passed NULL, like RSA_free() andDr. Stephen Henson1-1/+1
DSA_free(): this was causing crashes when for example an attempt was made to handle a (currently) unsupported DH public key. Also X509_PUBKEY_set()i wasn't checking errors from d2i_PublicKey().