Martin Baulig
c22c65382b
Merge the work branch.
2016-02-26 15:05:22 -05:00
Martin Baulig
092f614a40
Reflect latest runtime changes; it's now called MonoTlsSettings.RemoteCertificateValidationCallback.
2015-10-28 18:43:19 -04:00
Martin Baulig
7cd16dca80
OpenSsl: only initialize ECDHE for TLS 1.2.
2015-09-28 13:24:22 +02:00
Martin Baulig
ba924570b0
Switch the flag to mark them as enabled.
2015-09-28 12:55:01 +02:00
Martin Baulig
4132b89ab0
Compilation fix.
2015-09-28 11:17:56 +02:00
Martin Baulig
feec7ffacc
Add UserSettings.NamedCurve and hook it up via the MonoConnectionParameters.
2015-09-28 11:11:41 +02:00
Martin Baulig
bbeba8a8cb
NativeOpenSsl: initialize ECDHE.
2015-09-25 03:40:13 +02:00
Martin Baulig
7177c42c26
Add ISslStream.Close().
2015-09-25 03:40:07 +02:00
Martin Baulig
8ab9d16911
Add the new ConnectionProviderFlags.
2015-09-23 00:30:57 +02:00
Martin Baulig
4901844c19
NativeOpenSsl: add API to specify the Diffie-Hellman parameters.
2015-09-23 00:30:57 +02:00
Martin Baulig
1e61ae3049
Add IMonoSslStream.SupportsConnectionInfo and GetConnectionInfo().
...
Use the new API to get this and remove the UserSettings hack.
We now require Mono commit a8f23e1f0911246fdc48d9e4da5ae3d73930d769.
2015-09-16 03:27:59 +02:00
Martin Baulig
2be9a625b7
Add IMonoTlsStream.GetConnectionInfo().
2015-09-16 03:15:58 +02:00
Martin Baulig
0c6f4c3eaf
Add IMonoSslStream.SupportsRenegotiation.
2015-09-16 02:41:26 +02:00
Martin Baulig
0fa05ea5b0
Add some debug logging.
2015-09-16 02:12:53 +02:00
Martin Baulig
966aa312a3
Add ISslStream.RemoteCertificate.
2015-09-15 22:04:04 +02:00
Martin Baulig
9b3e8bfdc6
Add virtual CreateConnectionProviderFactory(), so we can override.
2015-09-10 18:59:09 +02:00
Martin Baulig
45ddd855fb
Make NewTlsDependencyProvider abstract.
2015-09-10 18:46:16 +02:00
Martin Baulig
64437e1318
Move the NewTlsTestFeatures dependency registration out of Mono.Security.NewTls.TestProvider.
2015-09-10 17:49:13 +02:00
Martin Baulig
a3569c9109
Use custom per-project-type entry point to make NewTlsDependencyProvider extensible.
2015-09-10 16:44:10 +02:00
Martin Baulig
857e7c8852
Pass down Parameters.EnableDebugging.
...
(cherry picked from commit 702349f5265a90eab0f9451eec6ca07d2ae65657)
2015-09-10 16:03:57 +02:00
Martin Baulig
48f6cb888a
OpenSsl is not available on Mobile. Rest of the tests now all pass.
2015-09-07 19:24:01 +02:00
Martin Baulig
71ed91d001
Need to register IPortableSupport here.
2015-09-03 15:41:07 +02:00
Martin Baulig
3e207bb363
Console and iOS should now build again.
2015-09-03 15:34:52 +02:00
Martin Baulig
b63dd20578
Add Mono.Security.NewTls.TestProvider as shared project.
2015-09-02 20:51:43 +02:00
Martin Baulig
7351f2274d
Rename Mono.Security.NewTls.TestProvider -> Mono.Security.NewTls.Console.
2015-09-02 20:46:50 +02:00
Martin Baulig
714528a3cf
Bump web-tests and remove unneeded 'using' statements.
2015-09-02 15:21:52 +02:00
Martin Baulig
8aeeae89fd
Small fix.
2015-08-28 16:20:11 +02:00
Martin Baulig
6677d62514
Remove obsolete connection providers.
2015-08-28 16:14:40 +02:00
Martin Baulig
85804400b6
Backup copy of my local changes.
2015-08-26 03:43:43 +02:00
Martin Baulig
d2307d24b1
IClientCertificate / IServerCertificate now longer directly exposes the internals.
2015-08-17 16:13:15 +02:00
Martin Baulig
eb3217eabf
Use ConnectionProviderType.PlatformDefault and make it use the new TLS.
2015-08-12 18:29:28 +02:00
Martin Baulig
4471299c48
Add ICertificateSelector abstraction layer.
2015-08-05 20:32:30 +02:00
Martin Baulig
ea41fa2104
Reflect latest Mono API changes; the 'ICertificateValidator' parameter has been removed from the public APIs.
2015-08-05 09:22:11 +02:00
Martin Baulig
f0de14537c
TlsSettings is now gone.
...
Mono.Security.Interface.MonoTlsSettings is now sealed and contains a 'UserSettings' property,
which we set to our 'UserSettings' instance.
2015-08-05 05:37:20 +02:00
Martin Baulig
9e2bf7d619
Ok, everything has been moved over to UserSettings.
2015-08-05 02:44:30 +02:00
Martin Baulig
1c50c2a2d0
Move Instrumentation from TlsSettings into UserSettings (TlsSettings will go away).
2015-08-05 02:42:58 +02:00
Martin Baulig
9c30256807
Find and fix a race condition.
2015-07-20 15:44:40 +02:00
Martin Baulig
f58a15cc6a
Only call Shutdown() if it's actually supported.
2015-07-19 03:00:33 +02:00
Martin Baulig
4556f840a4
NativeOpenSsl: disallow concurrent read/write/shutdown operations.
...
Attempting to call both Read()/Write() and Shutdown() at the same time
is not allowed because these methods are not thread-safe.
2015-07-18 03:49:53 +02:00
Martin Baulig
41699463b0
Improve debug spew.
2015-07-18 03:46:41 +02:00
Martin Baulig
92ca24bc29
FIXME: For some weird reason, WriteAsync() deadlocks if we don't overwrite BeginWrite()/EndWrite() here.
2015-07-16 18:21:32 +02:00
Martin Baulig
be9ee372fe
Hook it up with the test suite.
2015-07-15 02:37:02 +02:00
Martin Baulig
2cc1d535dd
Shutdown() no longer waits for a reply.
2015-07-08 07:04:15 +02:00
Martin Baulig
c48319a46e
Reflect latest Mono API changes.
2015-07-08 07:04:15 +02:00
Martin Baulig
7877163f70
Starting to add general connection tests for renegotiation and other stuff.
2015-07-06 13:26:30 +02:00
Martin Baulig
fba2ee152a
Another bunch of signature fixes and related tests.
2015-06-30 02:45:31 +02:00
Martin Baulig
12ff446850
Cleanup instrumentation and signature algorithm tests.
...
* Replace the ISignatureProvider interface with a new non-abstract SignatureProvider base class,
which provides the default implementation. The test suite may override individual methods to
provide different behavior.
* SignatureInstrument has been moved into the test suite.
* Make InstrumentationTestRunner abstract and create new SignatureInstrumentTestRunner /
SignatureInstrumentParameters.
* InstrumentParameters now contains "parameters" only, the 'InstrumentCollection' is constructed
from within 'InstrumentationTestRunner' and has access to the current 'TestContext'.
* SignatureInstrument now derives from SignatureParameters and has access to the TestContext;
now uses Context.Assert() / Context.Expect() for error checks.
2015-06-25 00:29:11 +02:00
Martin Baulig
76970f2674
Cosmetic.
2015-06-22 17:12:50 +02:00
Martin Baulig
6c11dbe6d1
Cleanup hash algorithms and add relevant tests.
2015-06-19 18:22:49 +02:00
Martin Baulig
4159a700bd
Merging the "work-signatures" local work branch.
2015-06-16 16:58:16 +02:00