SupplementalDataEntry.cs 680 B

123456789101112131415161718192021222324252627282930
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  5. {
  6. public class SupplementalDataEntry
  7. {
  8. protected readonly int mDataType;
  9. protected readonly byte[] mData;
  10. public SupplementalDataEntry(int dataType, byte[] data)
  11. {
  12. this.mDataType = dataType;
  13. this.mData = data;
  14. }
  15. public virtual int DataType
  16. {
  17. get { return mDataType; }
  18. }
  19. public virtual byte[] Data
  20. {
  21. get { return mData; }
  22. }
  23. }
  24. }
  25. #pragma warning restore
  26. #endif