summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace all use of ERR_add_error_data with ERR_asprintf_error_data.beck2014-04-2634-126/+106
| | | | | | | | This avoids a lot of ugly gymnastics to do snprintfs before sending the bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c where it was being called with the incorrect number of arguments and using random things off the stack as addresses of strings. ok krw@, jsing@
* More KNF.jsing2014-04-262-6/+10
|
* KNF.jsing2014-04-265-424/+414
|
* This is not FreeBSD.jsing2014-04-261-18/+0
| | | | ok miod@
* Do you really want to build OpenSSL for 16-bit Windows? Well, we don't.jsing2014-04-261-6/+0
| | | | ok miod@
* KNF.jsing2014-04-252-255/+251
|
* Clean up the remaining TTY related remnants.jsing2014-04-251-41/+8
| | | | ok miod@
* Use const char *.jsing2014-04-251-1/+1
| | | | Suggested by miod@
* Try to clean the maze of <openssl/bn.h> defines regarding the BN internals.miod2014-04-2410-227/+25
| | | | | | | | | | | | | | | | | | | | | | | The intent of this change is to only keep support for two kind of architectures: - those with 32-bit int and long, and 64-bit long long, where ``long * long -> long long'' multiplication routines are available. - those with 64-bit int and long, and no 128-bit long long type. This gets rid of the SIXTY_FOUR_BIT_LONG, SIXTY_FOUR_BIT (not the same!), THIRTY_TWO_BIT, SIXTEEN_BIT and EIGHT_BIT defines. After this change, the types and defines are as follows: arch: 64bit 32bit rationale BN_LLONG undefined defined defined if l * l -> ll BN_ULLONG undefined u long long result of BN_LONG * BN_LONG BN_ULONG u long u int native register size BN_LONG long int the same, signed BN_BITS 128 64 size of 2*BN_ULONG in bits BN_BYTES 8 4 size of 2*BN_ULONG in bytes BN_BITS2 64 32 BN_BITS / 2 Tested on various 32-bit and 64-bit OpenBSD systems of various endianness.
* unifdef MSDOSgiovanni2014-04-241-12/+1
| | | | ok miod@
* Remove some malloc/strlcpy/strlcat horror. Just use asprintf and avoid anjsing2014-04-241-25/+12
| | | | | | unchecked malloc at the same time. ok beck@
* add ERR_asprintf_error_data, A tool to be used to get rid of the far toobeck2014-04-242-25/+26
| | | | | | | | | frequent construct of 30 lines of pointer and strlcat insanity followed by an ERR_add_error_data. I will sweep through here like a chubby mongol horde in the next few days pillaging crappy ERR_add_error_data's. Oh and while we're at it fix the nasty vdata function to use something less hard on the eyes. ok jsing@
* You want signals?!? I'll give you signals!!! Oh, and we have termios asjsing2014-04-241-36/+0
| | | | | | well... ok beck@
* More KNF.jsing2014-04-242-37/+37
|
* repair missing semicolon. from Ian Mcwilliamtedu2014-04-241-1/+1
|
* Unifdef -UPKCS1_CHECK and remove SSL_OP_PKCS1_CHECK_[12], this is leftovermiod2014-04-231-3/+0
| | | | | | | | ``debug'' code from a 15+ years old bugfix and the SSL_OP_PKCS1_CHECK_* constants have had a value of zero since ages. No production code should use them. ok beck@
* ain't nobody got time for hpuxtedu2014-04-231-22/+0
|
* fix some variablestedu2014-04-231-2/+1
|
* replace a bunch of hand duped strings with strduptedu2014-04-232-10/+4
|
* Don't bother generating win64 assembly prologue.miod2014-04-231-26/+2
|
* malloc/memset -> calloc. from peter malonetedu2014-04-231-2/+1
|
* No longer needed during build. Brings a smile on beck@'s face.miod2014-04-231-6/+0
|
* The usual idiom to cope with systems not defining socklen_t is to add amiod2014-04-232-49/+8
| | | | | | | | | | | | | | | | | | #define socklen_t int somewhere (or a typedef, whatever gives you an integer type of the size your system expects as the 3rd argument of accept(2), really). OpenSSL here is a bit more creative by using an union of an int and a size_t, and extra code if sizeof(int) != sizeof(size_t) in order to recover the proper size. With a comment mentioning that this has no chance to work on a platform with a stack growing up and accept() returning an int, fortunately this seems to work on HP-UX. Switch to the light side of the force and declare and use socklen_t variables, period. If your system does not define socklen_t, consider bringing it back to your vendor for a refund. ok matthew@ tedu@
* close socket in failure cases tootedu2014-04-231-0/+3
|
* if realloc failed, BIO_accept would leak memory and return NULL, causingtedu2014-04-231-2/+11
| | | | caller to crash. Fix leak and return an error instead. from Chad Loder
* One last Dec C tentacle on alpha.miod2014-04-231-4/+1
|
* When I grow up, I want to write workaround for long long multiplicationsmiod2014-04-231-15/+0
| | | | under __TANDEM systems and compilers, using hardcoded octal numbers. NOT.
* Remove IRIX_CC_BUG workaround.miod2014-04-231-6/+0
|
* I'm glad to know that Ultrix CC has a bug optimizing switch() statementsmiod2014-04-232-15/+0
| | | | | lacking an explicit `case 0:' construct. But Ultrix has been dead for more than 15 years, really. Don't give it any reason to move out of its coffin.
* Grr, the more you remove, the more there remain.miod2014-04-232-618/+0
|
* Forgotten during latest spring cleaning of unreferenced bits.miod2014-04-231-276/+0
|
* Unifdef -UPEDANTIC. ok beck@ tedu@miod2014-04-2313-73/+35
|
* Remove duplicate pointer assignment in ASN1_primitive_free(); Dirk Englingmiod2014-04-231-1/+0
|
* Figure out endianness at compile-time, using _BYTE_ORDER frommiod2014-04-238-64/+50
| | | | | | | <machine/endian.h>, rather than writing 1 to a 32-bit variable and checking whether the first byte is nonzero. tweaks and ok matthew@; ok beck@ tedu@
* Casting from a const unsigned char ** to a const unsigned char ** seems...jsing2014-04-231-8/+4
| | | | | | | unnecessary. Remove the temporary ugly casts - the comments even call them that! ok guenther@
* Make libssl and libcrypto compile with -Werrorbeck2014-04-232-3/+3
| | | | ok miod@
* Make sure ret->name is NULL'ed before return when freeing.beck2014-04-231-0/+1
| | | | from Dirk Engling <erdgeist@erdgeist.org>
* Rather than sprinkling magical numbers everywhere, we can use sizeof()beck2014-04-231-4/+4
| | | | | for the size of a fixed size array. From Dirk Engling <erdgeist@erdgeist.org>
* unifdef -UAES_LONG for we do not intend to run on platforms where int is smallermiod2014-04-222-8/+0
| | | | than 32 bits.
* So it turns out that libcrypto on i386 platforms, unconditionaly compiles thismiod2014-04-221-39/+0
| | | | | | | | | | | | | little gem called OPENSSL_indirect_call(), supposedly to be ``handy under Win32''. In my view, this is a free-win ROP entry point. Why try and return to libc when you can return to libcrypto with an easy to use interface? Better not give that much attack surface, and remove this undocumented entry point. ok beck@ tedu@
* When compiling with AES_WRAP_TEST, make main() return a meaningful valuemiod2014-04-221-1/+15
| | | | | instead of garbage, and add this to the libcrypto regress. Note these tests are incomplete, as they always use the default IV.
* null a pointer to prevent double free. from Dirk Englingtedu2014-04-221-0/+1
|
* Remove files which look like actual code compiled in libcrypto, but isn't.miod2014-04-222-170/+0
| | | | One even says (in comments): HAS BUGS! DON'T USE
* fix memory leaks. from Dirk Englingtedu2014-04-223-21/+12
|
* Remove meat which either duplicates code found in apps/, or is only of valuemiod2014-04-2219-3531/+0
| | | | for 20th century historians, and can be put in the Attic.
* KNF.jsing2014-04-212-239/+249
|
* KNF.jsing2014-04-217-343/+409
|
* KNF.jsing2014-04-214-102/+119
|
* KNF.jsing2014-04-2112-1467/+1618
|
* no need for malloc castsderaadt2014-04-212-2/+2
|