aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7
Commit message (Collapse)AuthorAgeFilesLines
* Fix couple of memory leaks in PKCS7_dataDecode().Richard Levitte2001-04-051-2/+2
| | | | (provided by Stephen)
* avoid linking problems when OpenSSL is built with no-dsa. Spotted by ↵Richard Levitte2001-03-201-0/+4
| | | | Hellan,Kim KHE <khe@kmd.dk>
* Instead of telling both 'make' and the user that ranlibBodo Möller2001-03-091-2/+1
| | | | | | errors can be tolerated, hide the error from 'make'. This gives shorter output both if ranlib fails and if it works.
* Change the EVP_somecipher() and EVP_somedigest()Dr. Stephen Henson2001-03-093-6/+6
| | | | | | | functions to return constant EVP_MD and EVP_CIPHER pointers. Update docs.
* Fix ERR_R_... problems.Bodo Möller2001-03-073-4/+2
|
* make updateRichard Levitte2001-02-261-24/+22
| | | | | Note that all *_it variables are suddenly non-existant according to libeay.num. This is a bug that will be corrected. Please be patient.
* Stop PKCS7_verify() core dumping with unknown publicDr. Stephen Henson2001-02-242-8/+10
| | | | | key algorithms and leaking if the signature verify fails.
* Get rid of ASN1_ITEM_FUNCTIONS dummy functionDr. Stephen Henson2001-02-231-12/+12
| | | | | | prototype hack. This unfortunately means that every ASN1_*_END construct cannot have a trailing ;
* Initial support for ASN1_ITEM_FUNCTION option toDr. Stephen Henson2001-02-231-2/+2
| | | | | | | | 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.
* e_os.h does not belong with the exported headers. Do not put it thereRichard Levitte2001-02-221-43/+43
| | | | | | | | and make all files the depend on it include it without prefixing it with openssl/. This means that all Makefiles will have $(TOP) as one of the include directories.
* Make all configuration macros available for application by makingRichard Levitte2001-02-197-66/+66
| | | | | | | | | | | | 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.
* Make depend.Ben Laurie2001-02-041-40/+43
|
* Increase consistency of header data (some mail readers really do notRichard Levitte2001-01-301-3/+3
| | | | | | | like spaces before the semicolon, and besides, other parts of this file makes the values without those spaces), and move spacing of continuation lines to support BIO's that break lines after each write.
* Add debugging info to new ASN1 code to trace memory leaks.Dr. Stephen Henson2001-01-242-2/+18
| | | | | | Fix PKCS7 and PKCS12 memory leaks. Initialise encapsulated content type properly.
* Fix the S/MIME code so it now works again andDr. Stephen Henson2000-12-313-37/+42
| | | | uses the new ASN1 code.
* Rewrite PKCS#12 code and remove some of the oldDr. Stephen Henson2000-12-311-0/+1
| | | | | | | | | | 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).
* Replace the old ASN1_dup() with ASN1_item_dup() andDr. Stephen Henson2000-12-291-3/+1
| | | | zap some evil function pointers casts along the way...
* Various Win32 related fixes. Doesn't compile yet onDr. Stephen Henson2000-12-211-0/+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.
* Change the PKCS7 structure to use SEQUENCE OF for theDr. Stephen Henson2000-12-131-1/+4
| | | | | | | | | authenticated attributes: this is used to retain the original encoding and not break signatures. Support for a SET OF which reorders the STACK when encoding a structure. This will be used with the PKCS7 code.
* Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson2000-12-085-79/+221
| | | | | | to main trunk. Lets see if the makes it to openssl-cvs :-)
* in some new file names the first 8 characters were not uniqueUlf Möller2000-11-121-25/+21
|
* The experimental Rijndael code moved to the main trunk.Richard Levitte2000-10-141-18/+28
| | | | make update done.
* 'ranlib' doesn't always run on some systems. That's actuallyRichard Levitte2000-09-251-1/+2
| | | | | acceptable, since all that happens if it fails is a library with an index, which makes linking slower, but still working correctly.
* Work around for Netscape PKCS#7 signedData bug.Dr. Stephen Henson2000-09-181-0/+5
|
* Use sk_*_new_null() instead of sk_*_new(NULL), since that takes careRichard Levitte2000-09-173-4/+4
| | | | | of complaints from the compiler about data pointers and function pointers not being compatible with each other.
* Two places where I forgot to change vms_idhacks to symhacks.Richard Levitte2000-09-081-3/+1
|
* Ugh, BIO_find_type() cannot be passed a NULL.Dr. Stephen Henson2000-09-071-3/+3
| | | | | | | Fix doc example, and fix BIO_find_type(). Fix PKCS7_verify(). It was using 'i' for both the loop variable and the verify return value.
* Add docs for BIO_find_type() and friends.Dr. Stephen Henson2000-09-071-2/+2
| | | | | Added function BIO_next() otherwise you can't traverse a chain without accessing BIO internals.
* 'make update'Richard Levitte2000-09-071-11/+16
|
* Keep a not of original encoding in certificate requests.Dr. Stephen Henson2000-09-052-9/+13
| | | | Add new option to PKCS7_sign to exclude S/MIME capabilities.
* Add support for 'other' PKCS#7 content types.Dr. Stephen Henson2000-08-221-0/+3
|
* Various fixes...Dr. Stephen Henson2000-08-211-1/+1
| | | | | | | | | | | | | | | | initialize ex_pathlen to -1 so it isn't checked if pathlen is not present. set ucert to NULL in apps/pkcs12.c otherwise it gets freed twice. remove extraneous '\r' in MIME encoder. Allow a NULL to be passed to X509_gmtime_adj() Make PKCS#7 code use definite length encoding rather then the indefinite stuff it used previously.
* MD4 implemented. Assar Westerlund provided the digest code itself and the ↵Richard Levitte2000-08-141-25/+27
| | | | test utility, I added the bits to get a EVP interface, the command line utility and the speed test
* I got sick and tired of having to keep track of NIDs when such a thingRichard Levitte2000-07-051-15/+19
| | | | | | | | | | | | | | | | | | could be done automagically, much like the numbering in libeay.num and ssleay.num. The solution works as follows: - New object identifiers are inserted in objects.txt, following the syntax given in objects.README. - objects.pl is used to process obj_mac.num and create a new obj_mac.h. - obj_dat.pl is used to create a new obj_dat.h, using the data in obj_mac.h. This is currently kind of a hack, and the perl code in objects.pl isn't very elegant, but it works as I intended. The simplest way to check that it worked correctly is to look in obj_dat.h and check the array nid_objs and make sure the objects haven't moved around (this is important!). Additions are OK, as well as consistent name changes.
* Safe stack reorganisation in terms of function casts.Dr. Stephen Henson2000-06-162-155/+0
| | | | | | | | | | | | After some messing around this seems to work but needs a few more tests. Working out the syntax for sk_set_cmp_func() (cast it to a function that itself returns a function pointer) was painful :-( Needs some testing to see what other compilers think of this syntax. Also needs similar stuff for ASN1_SET_OF etc etc.
* Enable DSO support on alpha (OSF1), cc and gcc.Geoff Thorpe2000-06-131-23/+26
| | | | | | Also, "make update" has added some missing functions to libeay.num, updated the TABLE for the alpha changes, and updated thousands of dependancies that have changed from recent commits.
* There have been a number of complaints from a number of sources that namesRichard Levitte2000-06-014-22/+22
| | | | | | | | | 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.
* "make update" + stripping the type-specific stack functions out ofGeoff Thorpe2000-06-012-0/+155
| | | | libeay.num and ssleay.num.
* The previous commit to crypto/stack/*.[ch] pulled the type-safety stringsGeoff Thorpe2000-06-011-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | yet tighter, and also put some heat on the rest of the library by insisting (correctly) that compare callbacks used in stacks are prototyped with "const" parameters. This has led to a depth-first explosion of compiler warnings in the code where 1 constification has led to 3 or 4 more. Fortunately these have all been resolved to completion and the code seems cleaner as a result - in particular many of the _cmp() functions should have been prototyped with "const"s, and now are. There was one little problem however; X509_cmp() should by rights compare "const X509 *" pointers, and it is now declared as such. However, it's internal workings can involve recalculating hash values and extensions if they have not already been setup. Someone with a more intricate understanding of the flow control of X509 might be able to tighten this up, but for now - this seemed the obvious place to stop the "depth-first" constification of the code by using an evil cast (they have migrated all the way here from safestack.h). Fortunately, this is the only place in the code where this was required to complete these type-safety changes, and it's reasonably clear and commented, and seemed the least unacceptable of the options. Trying to take the constification further ends up exploding out considerably, and indeed leads directly into generalised ASN functions which are not likely to cooperate well with this.
* sk_value was also suffering from de-const-ification.Geoff Thorpe2000-05-311-0/+2
| | | | Also, add in a couple of missing declarations in pkcs7 code.
* Beginnings of EVP cipher overhaul. This should eventuallyDr. Stephen Henson2000-05-261-27/+4
| | | | | | | | | | | | | | | enhance and tidy up the EVP interface. This patch adds initial support for variable length ciphers and changes S/MIME code to use this. Some other library functions need modifying to support use of modified cipher parameters. Also need to change all the cipher functions that should return error codes, but currenly don't. And of course it needs extensive testing...
* Yet more typesafety.Ben Laurie2000-05-212-5/+7
|
* Typesafe Thought Police part 4.Ben Laurie2000-05-164-63/+72
|
* Typesafety Thought Police part 3.Ben Laurie2000-05-161-0/+4
|
* Get rid of more non-ANSI declarations.Ulf Möller2000-05-152-19/+19
|
* In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>,Richard Levitte2000-05-021-4/+4
| | | | | | "Jan Mikkelsen" <janm@transactionsite.com> correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed.
* "make update"Richard Levitte2000-04-091-10/+11
|
* Clean up context, even if an error occured.Richard Levitte2000-03-231-0/+1
|
* Update docs and remove old PKCS#7 README file.Dr. Stephen Henson2000-03-231-5/+0
|
* Preserve reason strings in automatically build tables.Bodo Möller2000-03-051-1/+2
|