summary refs log tree commit diff
path: root/Crypto/src/crypto/tls/LegacyTlsClient.cs
blob: fbb9a732e255a2a04248f44448bc4fcef7d4ed0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;

namespace Org.BouncyCastle.Crypto.Tls
{
	/// <summary>
	/// A temporary class to use LegacyTlsAuthentication 
	/// </summary>
	[Obsolete]
	public class LegacyTlsClient
		: DefaultTlsClient
	{
		[Obsolete]
		protected ICertificateVerifyer verifyer;

		[Obsolete]
		public LegacyTlsClient(ICertificateVerifyer verifyer)
		{
			this.verifyer = verifyer;
		}

		public override TlsAuthentication GetAuthentication()
		{
			return new LegacyTlsAuthentication(verifyer);
		}
	}
}