Commit Graph

201536 Commits

Author SHA1 Message Date
christos 7e3e66b16b add libgcc_pic dependency. 2011-06-05 23:09:15 +00:00
christos 94e4c3614b Add libgcc_pic for millicode. 2011-06-05 23:08:17 +00:00
spz 9d87d5aa75 clean up after my recent import for netbsd-5; these files don't belong
in -current
2011-06-05 17:15:40 +00:00
matt ef75e7c7b2 A few missed device_t, cfdata_t cleanups 2011-06-05 17:09:18 +00:00
matt 612b7ee57a struct device * -> device_t, struct cfdata * -> cfdata_t
CFATTACH_DECL(*, sizeof(struct device), -> CFATTACH_DECL_NEW(&, 0
2011-06-05 17:03:16 +00:00
matt 424af65722 device_t, cfdata_t, etc.
CFATTACH_DECL -> CFATTACH_DECL_NEW for sizeof(struct device).
2011-06-05 16:59:21 +00:00
matt 8704f281b7 Fix fencepost error. 2011-06-05 16:58:00 +00:00
matt 01fd92550a Remove <machine/atomic.h>; use <sys/atomic.h> instead.
Add <powerpc/cpuset.h> (for mpc85xx pmap).
Add some initial MP code for mpc85xx
Rework ipi code to be common across all ppcs
Change PPC to keep curlwp in %r13 while in the kernel.
Move astpending from cpu_info to mdlwp
Improve cpu_need_resched to be more MP friendly.
2011-06-05 16:52:22 +00:00
jruoho e8214a285d Granularity is fine, but also adjust atf_tc_expect_fail() properly. 2011-06-05 16:33:51 +00:00
tsutsui 2cb98cc774 Split device_t/softc. Also rename some softc variables. Tested on TT030.
XXX: old ugly config_console() hack should go away...
2011-06-05 16:25:12 +00:00
tsutsui e8604b1e02 Umm, fix more split fallout.
While here use a common arg name (aux) as mentioned in autoconf(9).
2011-06-05 16:22:00 +00:00
christos cd52b5a8cb bump symtab space 2011-06-05 16:15:24 +00:00
christos b7290d6431 assignment to sc_dev is in tcattach, we don't have sc_dev 2011-06-05 16:12:50 +00:00
christos d545620cfc fix split fallout. 2011-06-05 16:08:20 +00:00
spz 4e3dcb232d Import OpenSSL 1.0.1 stable of 20110605:
this is sort of a sidegrade onto the release branch. Changes against the
last version imported:

*) Backport libcrypto audit of return value checking from HEAD, not
   all cases can be covered as some introduce binary incompatibilities.
   [Steve Henson]

*) Redirect RSA operations to FIPS module including keygen,
   encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods.
   [Steve Henson]

*) Add similar low level API blocking to ciphers.
   [Steve Henson]

*) Low level digest APIs are not approved in FIPS mode: any attempt
   to use these will cause a fatal error. Applications that *really* want
   to use them can use the private_* version instead.
   [Steve Henson]

*) Redirect cipher operations to FIPS module for FIPS builds.
   [Steve Henson]

*) Redirect digest operations to FIPS module for FIPS builds.
   [Steve Henson]

*) Update build system to add "fips" flag which will link in fipscanister.o
   for static and shared library builds embedding a signature if needed.
   [Steve Henson]

*) Output TLS supported curves in preference order instead of numerical
   order. This is currently hardcoded for the highest order curves first.
   This should be configurable so applications can judge speed vs strength.
   [Steve Henson]

*) Add protection against ECDSA timing attacks as mentioned in the paper
   by Billy Bob Brumley and Nicola Tuveri, see:

      http://eprint.iacr.org/2011/232.pdf

   [Billy Bob Brumley and Nicola Tuveri]

*) Add TLS v1.2 server support for client authentication.
   [Steve Henson]

*) Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers
   and enable MD5.
   [Steve Henson]

*) Functions FIPS_mode_set() and FIPS_mode() which call the underlying
   FIPS modules versions.
   [Steve Henson]

*) Add TLS v1.2 client side support for client authentication. Keep cache
   of handshake records longer as we don't know the hash algorithm to use
   until after the certificate request message is received.
   [Steve Henson]

*) Initial TLS v1.2 client support. Add a default signature algorithms
   extension including all the algorithms we support. Parse new signature
   format in client key exchange. Relax some ECC signing restrictions for
   TLS v1.2 as indicated in RFC5246.
   [Steve Henson]

*) Add server support for TLS v1.2 signature algorithms extension. Switch
   to new signature format when needed using client digest preference.
   All server ciphersuites should now work correctly in TLS v1.2. No client
   support yet and no support for client certificates.
   [Steve Henson]

*) Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch
   to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based
   ciphersuites. At present only RSA key exchange ciphersuites work with
   TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete
   SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods
   and version checking.
   [Steve Henson]

*) New option OPENSSL_NO_SSL_INTERN. If an application can be compiled
   with this defined it will not be affected by any changes to ssl internal
   structures. Add several utility functions to allow openssl application
   to work with OPENSSL_NO_SSL_INTERN defined.
   [Steve Henson]

*) Add SRP support.
   [Tom Wu <tjw@cs.stanford.edu> and Ben Laurie]

*) Add functions to copy EVP_PKEY_METHOD and retrieve flags and id.
   [Steve Henson]

*) Add EC_GFp_nistp224_method(), a 64-bit optimized implementation for
   elliptic curve NIST-P224 with constant-time single point multiplication on
   typical inputs.  EC_GROUP_new_by_curve_name() will automatically use this
   (while EC_GROUP_new_curve_GFp() currently won't and prefers the more
   flexible implementations).

   The implementation requires support for the nonstandard type __uint128_t,
   and so is disabled by default.  To include this in your build of OpenSSL,
   use -DEC_NISTP224_64_GCC_128 on the Configure (or config) command line,
   and run "make depend" (or "make update").
   [Emilia K<E4>sper <emilia.kasper@esat.kuleuven.be> (Google)]

*) Permit abbreviated handshakes when renegotiating using the function
   SSL_renegotiate_abbreviated().
   [Robin Seggelmann <seggelmann@fh-muenster.de>]

*) Add call to ENGINE_register_all_complete() to
   ENGINE_load_builtin_engines(), so some implementations get used
   automatically instead of needing explicit application support.
   [Steve Henson]

*) Add support for TLS key exporter as described in RFC5705.
   [Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson]
2011-06-05 14:55:58 +00:00
christos 33c7476cb2 Revert previous and make frach be 0xc0000000 for NAN's generated by strtold()
as suggested by tron.
2011-06-05 14:43:12 +00:00
njoly 7c78532f22 Create empty temporary rumphdr.types file if missing; to avoid error
messages for compat syscalls files regen.
2011-06-05 14:13:53 +00:00
jruoho 0202e776ab Do not blindly cast things (obviously makes the test fail). 2011-06-05 13:51:46 +00:00
jruoho 4706fcee20 Remove the dirent(3) check entirely. 2011-06-05 13:49:46 +00:00
dsl 6e1d30d402 Use 'curlwp' here insteald of the 'l' - which isn't passsed as an arg
to the #define, but will always be curlwp.
2011-06-05 09:37:10 +00:00
dsl ce8178264d Don't directly call sys_sync() from random bits of code, instead
add do_sys_sync() that takes an 'lwp' (for l_cred) as an argument.
Explicitly pass &lwp0 rather than NULL and expecting sys_sync to
  substitute some random lwp.
2011-06-05 09:04:22 +00:00
dsl 57cfea60ab Delete some splurious commas and very unexpected trailing space 2011-06-05 08:42:59 +00:00
jmmv 727143def5 Do not blindly skip test code.
Tests are not supposed to skip whole parts of code to later report a success.
Instead, they need to report a 'skipped' result so that it is clear to the
user that some part of the tests were not run.

To do this, add proper calls to atf_tc_skip where some pieces of code are
skipped.  Also, make the strtod/strtof/strtold inf and nan tests more granular
so that the *ld versions can be skipped altogether when there is no support
for them.  As a result of this, the atf_tc_expect_fail becomes accurate; it
could have hidden bugs in strtod and strtof before.
2011-06-05 07:58:03 +00:00
tsutsui 8997a4eb90 Split device_t/softc. No crash on TT030. 2011-06-05 06:33:42 +00:00
tsutsui 6572d9c092 - use CFATTACH_DECL_NEW() (no softc)
- use device_t, cfdata_t etc.
2011-06-05 06:31:41 +00:00
jnemeth 5d8eade971 Brett Blymn -> Brett Lymn 2011-06-05 05:49:54 +00:00
christos 940f19b42b more malloc style. 2011-06-05 01:45:37 +00:00
christos dd8772617a - sprinkle const
- malloc style
2011-06-05 01:40:40 +00:00
christos a60572ee58 - use c99 to avoid extra ifdefs and tidy up the code
- require that undeflow returns 0 and ERANGE
2011-06-05 00:02:05 +00:00
matt dc3cdd31a6 Only do the long double tests if __HAVE_LONG_DOUBLE is defined 2011-06-04 22:55:57 +00:00
haad d2ca1cbffe Fix problem with overflowing constant definition
t_strtol.c:95: warning: overflow in implicit constant conversion
2011-06-04 22:49:49 +00:00
jruoho 7749bedf08 For completenesses sake, note, in 2011, /etc/floppytab. 2011-06-04 18:27:39 +00:00
jruoho 737bec53a6 Change some printfs to aprint_debug(9). 2011-06-04 18:03:10 +00:00
matt 81ee56f362 Make sure the kernel is compiled with -msdata=none since it uses %r2 and %r13
for other uses.
2011-06-04 17:51:09 +00:00
jruoho 9817cc1689 Until PR bin/44837 is fixed, use atf_tc_fail("anticipated error did not
occur") even if the bug did not trigger.
2011-06-04 15:51:45 +00:00
jruoho 82e825d83e Do not fail if readdir(3) fails, probably due fts(3). 2011-06-04 15:45:55 +00:00
christos 093aa7c0f7 Make NAN tests consistent with other platforms and FreeBSD. 2011-06-04 15:45:41 +00:00
jruoho 2f29e26662 Add some tests for strtol(3). 2011-06-04 14:56:57 +00:00
christos 85d18e0c63 remove string placed by error(1) 2011-06-04 14:18:10 +00:00
pgoyette dec626b5e2 Since there is no longer a value-avg property, remove the code that
extracts it.
2011-06-04 13:29:02 +00:00
pgoyette f02db4b78c Update to remove value_avg from list of properties. 2011-06-04 13:27:57 +00:00
pgoyette 41f31ea216 Remove ability to the value_avg since it no longer exists 2011-06-04 13:26:51 +00:00
pgoyette 7d8bd19e5d Update to use the new name for the sensor's private data.
XXX This driver still uses the sensor's value_min for an unrelated
XXX purpose, but changing that will have to wait for another day.
2011-06-04 13:25:56 +00:00
pgoyette 77b2e2fc09 Since nothing actually records or maintains an average sensor value,
remove value_avg from the prop_dict.  We can't completely remove it
because there's one driver that uses this field for its own private
purposes, so for now we just rename the member.
2011-06-04 13:24:33 +00:00
jruoho 22f449ee0a Add -ffloat-store add test lib/45020 also with __isnanl(). 2011-06-04 11:12:28 +00:00
jruoho 9478bd9e7d Add more strings to the "infinity test". 2011-06-04 10:16:59 +00:00
jruoho 27898bce9a Verify PR lib/45020. Fails at least on amd64. 2011-06-04 09:57:33 +00:00
jruoho af2ef37331 Add some tests for stat(2) (or tests that use stat(2)). 2011-06-04 09:29:43 +00:00
dholland 4cb0f7967a fix a couple typos 2011-06-04 05:30:45 +00:00
tsutsui 5fbf2258b9 Handle implicit library dependency for static builds:
- libheimbase is required by libkrb5
 - libwind is required by libhx509
2011-06-04 02:08:50 +00:00