aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/tasn_dec.c
Commit message (Collapse)AuthorAgeFilesLines
* More linker bloat reorganisation:Dr. Stephen Henson2001-07-271-0/+19
| | | | | | | | | | | | | | | | | | | | | Split private key PEM and normal PEM handling. Private key handling needs to link in stuff like PKCS#8. Relocate the ASN1 *_dup() functions, to the relevant ASN1 modules using new macro IMPLEMENT_ASN1_DUP_FUNCTION. Previously these were all in crypto/x509/x_all.c along with every ASN1 BIO/fp function which linked in *every* ASN1 function if a single dup was used. Move the authority key id ASN1 structure to a separate file. This is used in the X509 routines and its previous location linked in all the v3 extension code. Also move ASN1_tag2bit to avoid linking in a_bytes.c which is now largely obsolete. So far under Linux stripped binary with single PEM_read_X509 is now 238K compared to 380K before these changes.
* Fix ASN1 bug when decoding OTHER type.Dr. Stephen Henson2001-04-211-2/+7
| | | | Various S/MIME DSA related fixes.
* Don't use 'tt' uninitialized when reporting an errorBodo Möller2001-04-051-1/+0
| | | | | (we don't have an ASN1_TEMPLATE to complain about at this stage, so errtt == NULL should be OK)
* Rewrite CHOICE field setting code to properly handleDr. Stephen Henson2001-04-021-12/+16
| | | | | | combine in CHOICE options. This was causing d2i_DSAPublicKey() to misbehave.
* Trap an invalid ASN1_ITEM construction and print outDr. Stephen Henson2001-02-251-4/+14
| | | | the errant field for more ASN1 error conditions.
* Initial support for ASN1_ITEM_FUNCTION option toDr. Stephen Henson2001-02-231-4/+4
| | | | | | | | change the way ASN1 modules are exported. Still needs a bit of work for example the hack which a dummy function prototype to avoid compilers warning about multiple ;s.
* Include string.h so mem*() functions get properly declared.Richard Levitte2001-02-201-0/+1
|
* Fix typo in OCSP nonce extension.Dr. Stephen Henson2001-01-041-1/+5
| | | | | | | | | | | | 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().
* Update OCSP API.Dr. Stephen Henson2001-01-041-3/+9
| | | | | | | | | | | | | | | | | | Remove extensions argument from various functions because it is not needed with the new extension code. New function OCSP_cert_to_id() to convert a pair of certificates into an OCSP_CERTID. New simple OCSP HTTP function. This is rather primitive but just about adequate to send OCSP requests and parse the response. Fix typo in CRL distribution points extension. Fix ASN1 code so it adds a final null to constructed strings.
* Rewrite PKCS#12 code and remove some of the oldDr. Stephen Henson2000-12-311-9/+9
| | | | | | | | | | horrible macros. Fix two evil ASN1 bugs. Attempt to use 'ctx' when NULL if input is indefinite length constructed in asn1_check_tlen() and invalid pointer to ASN1_TYPE when reusing existing structure (this took *ages* to find because the new PKCS#12 code triggered it).
* Various Win32 related fixes. Doesn't compile yet onDr. Stephen Henson2000-12-211-2/+2
| | | | | | | | | | | | | | Win32 but it is getting there... Update mkdef.pl to handle ASN1_ANY and fix headers. Stop various VC++ warnings. Include some fixes from "Peter 'Luna' Runestig" <peter@runestig.com> Remove external declaration for des_set_weak_key_flag: it doesn't exist.
* Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson2000-12-081-0/+910
to main trunk. Lets see if the makes it to openssl-cvs :-)