TlsECConfig.cs 721 B

1234567891011121314151617181920212223242526
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto
  5. {
  6. /// <summary>Carrier class for Elliptic Curve parameter configuration.</summary>
  7. public class TlsECConfig
  8. {
  9. protected readonly int m_namedGroup;
  10. public TlsECConfig(int namedGroup)
  11. {
  12. this.m_namedGroup = namedGroup;
  13. }
  14. /// <summary>Return the group used.</summary>
  15. /// <returns>the <see cref="NamedGroup">named group</see> used.</returns>
  16. public virtual int NamedGroup
  17. {
  18. get { return m_namedGroup; }
  19. }
  20. }
  21. }
  22. #pragma warning restore
  23. #endif