133 lines
3.1 KiB
C#
133 lines
3.1 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp
|
|
{
|
|
// Token: 0x02001964 RID: 6500
|
|
[Token(Token = "0x2001964")]
|
|
public class GenTimeAccuracy
|
|
{
|
|
// Token: 0x06009A7E RID: 39550 RVA: 0x001FF928 File Offset: 0x001FDB28
|
|
[Token(Token = "0x6009A7E")]
|
|
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
|
public GenTimeAccuracy(Accuracy accuracy)
|
|
{
|
|
this.accuracy = accuracy;
|
|
}
|
|
|
|
// Token: 0x170018B5 RID: 6325
|
|
// (get) Token: 0x06009A7F RID: 39551 RVA: 0x001FF944 File Offset: 0x001FDB44
|
|
[Token(Token = "0x170018B5")]
|
|
public int Seconds
|
|
{
|
|
[Token(Token = "0x6009A7F")]
|
|
[Address(RVA = "0x1B15620", Offset = "0x1B14420", VA = "0x181B15620")]
|
|
get
|
|
{
|
|
DerInteger seconds = this.accuracy.seconds;
|
|
if (seconds == 0)
|
|
{
|
|
return 0;
|
|
}
|
|
return seconds.Value.IntValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170018B6 RID: 6326
|
|
// (get) Token: 0x06009A80 RID: 39552 RVA: 0x001FF974 File Offset: 0x001FDB74
|
|
[Token(Token = "0x170018B6")]
|
|
public int Millis
|
|
{
|
|
[Token(Token = "0x6009A80")]
|
|
[Address(RVA = "0x1B155E0", Offset = "0x1B143E0", VA = "0x181B155E0")]
|
|
get
|
|
{
|
|
DerInteger millis = this.accuracy.millis;
|
|
if (millis == 0)
|
|
{
|
|
return 0;
|
|
}
|
|
return millis.Value.IntValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170018B7 RID: 6327
|
|
// (get) Token: 0x06009A81 RID: 39553 RVA: 0x001FF9A4 File Offset: 0x001FDBA4
|
|
[Token(Token = "0x170018B7")]
|
|
public int Micros
|
|
{
|
|
[Token(Token = "0x6009A81")]
|
|
[Address(RVA = "0x1B155A0", Offset = "0x1B143A0", VA = "0x181B155A0")]
|
|
get
|
|
{
|
|
DerInteger micros = this.accuracy.micros;
|
|
if (micros == 0)
|
|
{
|
|
return 0;
|
|
}
|
|
return micros.Value.IntValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009A82 RID: 39554 RVA: 0x001FF9D4 File Offset: 0x001FDBD4
|
|
[Token(Token = "0x6009A82")]
|
|
[Address(RVA = "0x1B152D0", Offset = "0x1B140D0", VA = "0x181B152D0")]
|
|
private int GetTimeComponent(DerInteger time)
|
|
{
|
|
if (time == 0)
|
|
{
|
|
}
|
|
return time.Value.IntValue;
|
|
}
|
|
|
|
// Token: 0x06009A83 RID: 39555 RVA: 0x001FF9F8 File Offset: 0x001FDBF8
|
|
[Token(Token = "0x6009A83")]
|
|
[Address(RVA = "0x1B15310", Offset = "0x1B14110", VA = "0x181B15310", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
object[] array = new object[0];
|
|
DerInteger seconds = this.accuracy.seconds;
|
|
if (seconds == 0)
|
|
{
|
|
}
|
|
int intValue = seconds.Value.IntValue;
|
|
if (intValue != 0)
|
|
{
|
|
}
|
|
array[0] = intValue;
|
|
if ("." != 0)
|
|
{
|
|
}
|
|
array[1] = ".";
|
|
DerInteger millis = this.accuracy.millis;
|
|
if (millis == 0)
|
|
{
|
|
}
|
|
int intValue2 = millis.Value.IntValue;
|
|
string text;
|
|
if (text != 0)
|
|
{
|
|
}
|
|
array[2] = text;
|
|
DerInteger micros = this.accuracy.micros;
|
|
if (micros != 0)
|
|
{
|
|
int intValue3 = micros.Value.IntValue;
|
|
}
|
|
string text2;
|
|
if (text2 != 0)
|
|
{
|
|
}
|
|
array[3] = text2;
|
|
return string.Concat(array);
|
|
}
|
|
|
|
// Token: 0x0400689B RID: 26779
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400689B")]
|
|
private Accuracy accuracy;
|
|
}
|
|
}
|