summaryrefslogtreecommitdiff
path: root/crypto/asn1
Commit message (Collapse)AuthorAgeFilesLines
* A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.Geoff Thorpe2003-10-296-10/+12
| | | | | | | | | | 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.
* ASN1 parse fix and release file changes.Dr. Stephen Henson2003-09-302-1/+10
|
* outlen should be int * in out_utf8.Dr. Stephen Henson2003-08-211-1/+1
|
* Fix sign bugs.Richard Levitte2003-05-211-1/+1
| | | | PR: 621
* Add correct DN entry for serialNumber.Dr. Stephen Henson2003-05-071-1/+4
|
* Typo.Dr. Stephen Henson2003-04-101-1/+1
|
* Correct a lot of printing calls. Remove extra arguments...Richard Levitte2003-04-032-2/+2
|
* Make sure we get the definition of OPENSSL_NO_BIO and OPENSSL_NO_RSA.Richard Levitte2003-03-202-2/+2
|
* New ASN1 macros to just implement and declare the new and free functionsDr. Stephen Henson2003-03-202-4/+11
| | | | | | and changes to mkdef.pl so it recognises them. Use these in policyMappings extension.
* Add entry for domainComponent so it is treated correctly.Dr. Stephen Henson2003-03-141-0/+35
| | | | Add table order test to end of a_strnid.c
* Fix indefinite length encoding so EOC correctly updatesDr. Stephen Henson2003-02-251-2/+4
| | | | | | | | the buffer pointer. Rename PKCS7_PARTSIGN to PKCS7_STREAM. Guess what that's for :-)
* ECPublicKey_set_octet_string and ECPublicKey_get_octet_stringBodo Möller2003-02-212-4/+3
| | | | | | | | | | | | behaviour was not quite consistent with the conventions for d2i and i2d functions as far as handling of the 'out' or 'in' pointer is concerned. This patch changes this behaviour, and renames the functions to o2i_ECPublicKey and i2o_ECPublicKey (not 'd2i' and 'i2d' because the external encoding is just a raw object string without any DER icing). Submitted by: Nils Larsch
* Ooops forgot to recognise V_ASN1_GENERALSTRING.Dr. Stephen Henson2003-02-201-0/+1
|
* Typo.Dr. Stephen Henson2003-02-181-1/+1
|
* GeneralString support in mini-ASN1 compilerDr. Stephen Henson2003-02-111-0/+2
|
* For ecdsa-with-SHA1, as for id-dsa-with-sha1, omit 'parameters'Bodo Möller2003-01-241-4/+5
| | | | | | in AlgorithmIdentifier Submitted by: Nils Larsch
* Check return value of gmtime() and add error codesDr. Stephen Henson2003-01-243-31/+36
| | | | | | | | | where it fails in ASN1_TIME_set(). Edit asn1.h so the new error code is the same in 0.9.7 and 0.9.8, rebuild new error codes. Clear error queue in req.c if *_min or *_max is absent.
* Make sure the last character of the ASN.1 time string (the 'Z') is copied.Richard Levitte2003-01-011-1/+1
| | | | PR: 429
* make updateRichard Levitte2002-12-291-597/+315
|
* Workaround for GCC-ia64 compiler bug.Andy Polyakov2002-12-061-0/+5
| | | | | | Submitted by: <appro> Reviewed by: PR:
* In ECPKParameters_print, output the private key length correctlyBodo Möller2002-12-041-2/+8
| | | | | | | (length of the order of the group, not length of the actual key, which will be shorter in some cases). Submitted by: Nils Larsch
* Make ASN1_TYPE_get() work for V_ASN1_NULL type.Dr. Stephen Henson2002-12-041-1/+1
|
* In asn1_d2i_read_bio, don't assume BIO_read willDr. Stephen Henson2002-12-031-5/+10
| | | | | return the requested number of bytes when reading content.
* Cleanse memory using the new OPENSSL_cleanse() function.Richard Levitte2002-11-284-11/+11
| | | | I've covered all the memset()s I felt safe modifying, but may have missed some.
* Extra ; removed.Richard Levitte2002-11-271-1/+1
|
* Add the ASN.1 structures and functions for CertificatePair, which isRichard Levitte2002-11-181-0/+6
| | | | | | | | | | | | | | | | | | | defined as follows (according to X.509_4thEditionDraftV6.pdf): CertificatePair ::= SEQUENCE { forward [0] Certificate OPTIONAL, reverse [1] Certificate OPTIONAL, -- at least one of the pair shall be present -- } The only thing I'm not sure about is if it's implicit or explicit tags that I should count on. For now, I'm thinking explicit, but will gladly stand corrected. Also implement the PEM functions to read and write certificate pairs, and defined the PEM tag as "CERTIFICATE PAIR". This needed to be defined, mostly for the sake of the LDAP attribute crossCertificatePair, but may prove useful elsewhere as well.
* Add SETWRAP modifier to ASN1 generate.Dr. Stephen Henson2002-11-151-1/+9
|
* use new BIO_indent() function here as wellBodo Möller2002-11-141-30/+11
| | | | Submitted by: Nils Larsch
* free() -> OPENSSL_free()Richard Levitte2002-11-131-2/+2
|
* This didn't get to the 0.9.8-dev thread...Richard Levitte2002-11-132-9/+3
|
* Security fixes brought forward from 0.9.7.Ben Laurie2002-11-1315-64/+84
|
* Fix warnings, makefile cockup.Ben Laurie2002-11-131-2/+2
|
* Only accept exact match for modifier or tag nameDr. Stephen Henson2002-11-131-1/+1
|
* Initial ASN1 generation code. This can constructDr. Stephen Henson2002-11-124-2/+894
| | | | | | arbitrary encodings from strings and config files. Documentation to follow...
* Check for NULL ASN1_ITEM when initializeingDr. Stephen Henson2002-11-052-2/+8
| | | | boolean option in ASN1_TYPE.
* implement and use new macros BN_get_sign(), BN_set_sign()Bodo Möller2002-11-043-5/+7
| | | | Submitted by: Nils Larsch
* In my extreme debug mode, gcc complains that 'static' doesn't comeRichard Levitte2002-10-201-13/+13
| | | | first.
* makedepend complains when a header file is included more than once inRichard Levitte2002-10-141-1/+0
| | | | the same source file.
* Use double dashes so makedepend doesn't misunderstand the flags weRichard Levitte2002-10-091-1/+1
| | | | | | | give it. For 0.9.7 and up, that means util/domd needs to remove those double dashes from the argument list when gcc is used to find the dependencies.
* Various Win32 fixes.Dr. Stephen Henson2002-10-061-1/+1
| | | | | | Resolve signed/unsigned conflicts Make dso_win32.c compile.
* Oops, remove old comment out debugging printf...Dr. Stephen Henson2002-10-061-3/+5
|
* Please do not use C++ comments in C code.Richard Levitte2002-10-061-1/+3
|
* Various enhancements to PKCS#12 code, newDr. Stephen Henson2002-10-031-0/+23
| | | | | | medium level API, improved PKCS12_create and additional functionality in pkcs12 utility.
* Preliminary streaming ASN1 encode support.Dr. Stephen Henson2002-10-039-74/+255
|
* Fix ASN1_STRING_to_UTF8: remove non sensical !*out test.Dr. Stephen Henson2002-08-301-2/+2
|
* less specific interface for EC_GROUP_get_basis_typeBodo Möller2002-08-261-2/+1
| | | | Submitted by: Nils Larsch, Bodo Moeller
* ASN1 for binary curvesBodo Möller2002-08-261-1/+27
| | | | Submitted by: Nils Larsch
* Reinstate the check for invalid length BIT STRINGS,Dr. Stephen Henson2002-08-232-3/+9
| | | | which was effectively bypassed in the ASN1 changed.
* Make -nameopt work in req and add support for -reqoptDr. Stephen Henson2002-08-221-111/+152
|
* make updateBodo Möller2002-08-091-401/+416
|