}
ProtocolToken token = new ProtocolToken(nextmsg, status);
+
if (NetEventSource.IsEnabled)
+ {
+ if (token.Failed)
+ {
+ NetEventSource.Error(this, $"Authentication failed. Status: {status.ToString()}, Exception message: {token.GetException().Message}");
+ }
+
NetEventSource.Exit(this, token);
+ }
return token;
}
--*/
private SecurityStatusPal GenerateToken(byte[] input, int offset, int count, ref byte[] output)
{
-#if TRACE_VERBOSE
if (NetEventSource.IsEnabled) NetEventSource.Enter(this, $"_refreshCredentialNeeded = {_refreshCredentialNeeded}");
-#endif
+
if (offset < 0 || offset > (input == null ? 0 : input.Length))
{
NetEventSource.Fail(this, "Argument 'offset' out of range.");
byte[] alpnResult = SslStreamPal.GetNegotiatedApplicationProtocol(_securityContext);
_negotiatedApplicationProtocol = alpnResult == null ? default : new SslApplicationProtocol(alpnResult, false);
+ if (NetEventSource.IsEnabled)
+ {
+ NetEventSource.Exit(this);
+ }
+
return status;
}