summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_int.c
AgeCommit message (Collapse)Author
2010-06-12Fix warnings.Ben Laurie
2008-11-12Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe
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 Laurie
2006-03-04make some parameters constNils Larsch
2005-05-09Update util/ck_errf.pl script, and have it run automaticallyBodo Möller
during "make errors" and thus during "make update". Fix lots of bugs that util/ck_errf.pl can detect automatically. Various others of these are still left to fix; that's why "make update" will complain loudly when run now.
2005-04-22- use BN_set_negative and BN_is_negative instead of BN_set_signNils Larsch
and BN_get_sign - implement BN_set_negative as a function - always use "#define BN_is_zero(a) ((a)->top == 0)"
2004-08-10Make ASN1_INTEGER_cmp() work as expected with negative integers.Dr. Stephen Henson
2004-05-17Deprecate the recursive includes of bn.h from various API headers (asn1.h,Geoff Thorpe
dh.h, dsa.h, ec.h, ecdh.h, ecdsa.h, rsa.h), as the opaque bignum types are already declared in ossl_typ.h. Add explicit includes for bn.h in those C files that need access to structure internals or API functions+macros.
2004-03-15Constify d2i, s2i, c2i and r2i functions and other associatedRichard Levitte
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-10-29A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.Geoff Thorpe
I have tried to convert 'len' type variable declarations to unsigned as a means to address these warnings when appropriate, but when in doubt I have used casts in the comparisons instead. The better solution (that would get us all lynched by API users) would be to go through and convert all the function prototypes and structure definitions to use unsigned variables except when signed is necessary. The proliferation of (signed) "int" for strictly non-negative uses is unfortunate.
2002-11-04implement and use new macros BN_get_sign(), BN_set_sign()Bodo Möller
Submitted by: Nils Larsch
2002-06-11Fix warnings.Ben Laurie
2002-05-30Check the return values where memory allocation failures may happen.Richard Levitte
PR: 49
2001-01-19Fixes to various ASN1_INTEGER routines for negative case.Dr. Stephen Henson
Enhance s2i_ASN1_INTEGER().
2001-01-04Fix typo in OCSP nonce extension.Dr. Stephen Henson
Set correct type in ASN1_STRING for INTEGER and ENUMERATED types. Make ASN1_INTEGER_get() and ASN1_ENUMERATED_get() return -1 for invalid type rather than 0 (which is often valid). -1 may also be valid but this is less likely. Load OCSP error strings in ERR_load_crypto_strings().
2000-12-08Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson
to main trunk. Lets see if the makes it to openssl-cvs :-)
2000-08-22Fix ASN1_INTEGER_to_BN properly this time...Dr. Stephen Henson
2000-08-22Fixes to d2i_ASN1_OBJECT, ASN1_INTEGER_to_BN and a_strex.cDr. Stephen Henson
2000-07-27Fix a bug in the new i2d_{ENUMERATED,INTEGER} thatDr. Stephen Henson
didn't recognise NULL to mean 'don't output anything'
2000-07-10Fix some typose in the i2d/d2i functions thatDr. Stephen Henson
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 Henson
content octets, not tag+length.
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte
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-05-17Typesafety Thought Police part 5.Ben Laurie
2000-01-30Seek out and destroy another evil cast.Ulf Möller
1999-12-10Fix for crashing INTEGERs, ENUMERATEDs and OBJECT IDENTIFIERs.Dr. Stephen Henson
Also fix a memory leak in PKCS#7 routines.
1999-10-23Don't return stuff from void functions.Ben Laurie
1999-10-20Replace the macros in asn1.h with function equivalents. Also make UTF8StringsDr. Stephen Henson
tolerated in certificates.
1999-06-24Fix d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() so it correctly works outDr. Stephen Henson
the length of negative integers.
1999-05-14The encoding of negative ASN1 INTEGERs and the conversion of BNs to negativeDr. Stephen Henson
integers was completely broken. Also added a NEG_PUBKEY_BUG compilation option to compensate for public keys improperly encoded as negative integers.
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller
Submitted by: Reviewed by: PR:
1999-04-19Change functions to ANSI C.Ulf Möller
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall