summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-25"for every change..."Ted Unangst
2014-05-25remove OPENSSL_memcmp before somebody tries to use it. ok beck miodTed Unangst
2014-05-25remove OPENSSL_isservice. not used internally, no sane posix software willTed Unangst
call it, and windows service software can figure this out on its own. ok beck miod
2014-05-25remove unused shit. from Alexander SchrijverTed Unangst
2014-05-25define LIBRESSL_INTERNAL, and use it to hide the bad stuff from ourselvesTed Unangst
ok beck
2014-05-25Remove TLS_DEBUG, SSL_DEBUG, CIPHER_DEBUG and OPENSSL_RI_DEBUG. Much ofJoel Sing
this is sporadic, hacked up and can easily be put back in an improved form should we ever need it. ok miod@
2014-05-25Turn off MemCheck_on and MemCheck_off. These calls are pointless since theJoel Sing
crypto memory debugging code has been castrated. ok miod@ "kill it" beck@
2014-05-25The ssl_ciper_get_evp() function is currently overloaded to also return theJoel Sing
compression associated with the SSL session. Based on one of Adam Langley's chromium diffs, factor out the compression handling code into a separate ssl_cipher_get_comp() function. Rewrite the compression handling code to avoid pointless duplication and so that failures are actually returned to and detectable by the caller. ok miod@
2014-05-25Whitespace fixes to align define values.Joel Sing
2014-05-24In ssl_cipher_get_evp(), fix off-by-one in index validation before accessingMiod Vallat
arrays. "kind of scary" deraadt@, ok guenther@
2014-05-24I'm so sorry to learn that the Diab compiler can't (or used not to) parse CMiod Vallat
code. Remove workaround.
2014-05-24Use C99 initialisers for SSL3_ENC_METHOD structs.Joel Sing
ok miod@
2014-05-24Remove the _shadow_ indirection, which is unnecessary in a world withoutJoel Sing
OPENSSL_EXPORT_VAR_AS_FUNCTION. ok miod@
2014-05-24KNF.Joel Sing
2014-05-24More KNF.Joel Sing
2014-05-24KNF.Joel Sing
2014-05-24Enable three brainpool elliptic curves for TLS, as specified in RFC 7027;Miod Vallat
from OpenSSL HEAD. ok beck@ deraadt@ jsing@
2014-05-24Code using malloc() in ssl23_get_client_hello() got removed 12 years ago,Miod Vallat
it's time to remove the test for a possible need to free(). ok jsing@
2014-05-24Use sizeof(cryptopro_ext) instead of 36 when applicable.Miod Vallat
ok jsing@
2014-05-24Invoke OPENSSL_cleanse() with the size of the variable you are cleaning.Miod Vallat
ok jsing@
2014-05-24We have shared global variables - unifdef OPENSSL_EXPORT_VAR_AS_FUNCTION.Joel Sing
ok miod@ beck@
2014-05-24Expand the OPENSSL_.*GLOBAL.* macros and stop including e_os2.h.Joel Sing
ok miod@ beck@
2014-05-24Include <openssl/opensslconf.h> - currently ssl.h is relying on it beingJoel Sing
pulled in elsewhere, even though it is makes use of the OPENSSL_NO_* defines. While here, remove kssl.h since it is a no-op. ok beck@ miod@
2014-05-24DeIMPLEMENT libssl. Expand the IMPLEMENT_* macros since it is far moreJoel Sing
readable and one less layer of abstraction. Use C99 initialisers for clarity, grepability and to protect from future field reordering/removal. ok miod@ (tedu@ also thought it was a wonderful idea, beck@ also agreed, but ran away squealing since it reminded him of the VOP layer...)
2014-05-24Another e_os2.h -> opensslconf.h.Joel Sing
2014-05-24e_os2.h is not needed here.Joel Sing
2014-05-24Explicitly include <openssl/openssl.conf>. des.h still needs e_os2.h (atJoel Sing
least for a little while longer...)
2014-05-24Almost nothing actually needs to include <openssl/e_os2.h>, however byJoel Sing
including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
2014-05-24Expand OPENSSL_{GLOBAL,EXTERN} macros that I missed last time around,Joel Sing
since they are hiding in the #define forest. ok miod@
2014-05-24Spell ssize_t correctly (the incorrect spelling is ossl_ssize_t).Joel Sing
ok miod@
2014-05-24No OPENSSL_SYS_WINDOWS wanted.Joel Sing
ok miod@
2014-05-23Take an axe to rc5speed.c - strip out everything that is for otherJoel Sing
platforms.
2014-05-23We have stdio and are not WIN16.Joel Sing
2014-05-23Not OPENSSL_SYS_SUNOS.Joel Sing
2014-05-23Clean up the SSL cipher initialisation and use C99 initialisers forJoel Sing
clarity, grepability and to protect from future field reordering/removal. ok miod@
2014-05-23Replace (sometimes conditional) use of alloca with malloc, and clearingMiod Vallat
through volatile pointers with explicit_bzero(). ok beck@ jsing@
2014-05-23don't deprecate until at least the base src tree is clean.Ted Unangst
2014-05-22Mark the malloc wrapper functions as deprecated so warnings willBob Beck
happen on their use. ok miod@
2014-05-22Convert OPENSSL_malloc stuff back to intrinsics, a few were missedBob Beck
as new stuff was brought in. ok miod@
2014-05-22if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefullyMiod Vallat
eyeballed before applying. Contributed by Cyril Roelandt on tech@
2014-05-22Add explicit #include lines for stdio.h, stdlib.h and string.h; these filesMiod Vallat
used to be pulled via <openssl/pqueue.h> which got removed, and it turns out that there is code in the wild which currently relies upon these headers to be brought in scope by including <openssl/dtls1.h>. Although such code needs to be fixed to not rely upon any system header being automagically included by including ssl headers, our goal is not to break code for the sake of it (ok, maybe from time to time). Hopefully, this commit can be reverted in a not-so-distant future.
2014-05-22Expand the OPENSSL_{GLOBAL,EXPORT,IMPORT,EXTERN} macros - this rids theJoel Sing
libssl tree from all uses of these defines. ok miod@
2014-05-22There are two actual uses of e_os2.h in libssl - an OPENSSL_GLOBAL (anJoel Sing
empty define) and an OPENSSL_EXTERN (which is defined as, well... extern). The use of OPENSSL_EXTERN is already inconsistent since the lines above and below just use plain old "extern". Expand the two uses of these macros and stop including e_os2.h in libssl. ok miod@
2014-05-22Stop pulling pqueue.h into ssl_locl.h since only a small part of libsslJoel Sing
actually needs it. Instead, just include it in the files where it is actually necessary. Also remove standard includes from pqueue.h so that they are not available as a side effect. Just add the two includes that are needed to pqueue.c. ok miod@
2014-05-22Stop including kssl_lcl.h and nuke it from orbit - it is a no-op now.Joel Sing
ok beck@ miod@
2014-05-22Hello? Yes, you're speaking with OPENSSL_SYS_UNIX.Joel Sing
ok beck@ miod@
2014-05-22mark BIO_snprintf as deprecated, so warnings will be generated for it'sBob Beck
use. ok miod@ tedu@
2014-05-22KNF.Joel Sing
2014-05-22KNF.Joel Sing
2014-05-22More KNF.Joel Sing