Switch the rest of the API to the new TimeStamp structure. Fix the TimeStamp structure to handle dates that are past the upper limit of DateTime.MaxValue.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace NSspi.Credentials
|
||||
{
|
||||
string packageName;
|
||||
CredentialUse use;
|
||||
long rawExpiry = 0;
|
||||
TimeStamp rawExpiry = new TimeStamp();
|
||||
|
||||
// -- Package --
|
||||
if ( package == SecurityPackage.Kerberos )
|
||||
@@ -101,7 +101,7 @@ namespace NSspi.Credentials
|
||||
throw new SSPIException( "Failed to call AcquireCredentialHandle", status );
|
||||
}
|
||||
|
||||
this.expiry = TimeStamp.Calc( rawExpiry );
|
||||
this.expiry = rawExpiry.ToDateTime();
|
||||
}
|
||||
|
||||
~Credential()
|
||||
|
||||
Reference in New Issue
Block a user