336 {
337 global::Interop.SspiCli.SCHANNEL_CRED
sCHANNEL_CRED =
default(global::Interop.SspiCli.SCHANNEL_CRED);
338 sCHANNEL_CRED.hRootStore =
IntPtr.Zero;
339 sCHANNEL_CRED.aphMappers =
IntPtr.Zero;
340 sCHANNEL_CRED.palgSupportedAlgs =
IntPtr.Zero;
341 sCHANNEL_CRED.paCred = null;
342 sCHANNEL_CRED.cCreds = 0;
343 sCHANNEL_CRED.cMappers = 0;
344 sCHANNEL_CRED.cSupportedAlgs = 0;
345 sCHANNEL_CRED.dwSessionLifespan = 0;
346 sCHANNEL_CRED.reserved = 0;
347 sCHANNEL_CRED.dwVersion = 4;
348 global::Interop.SspiCli.SCHANNEL_CRED result =
sCHANNEL_CRED;
350 {
351 case EncryptionPolicy.RequireEncryption:
352 result.dwMinimumCipherStrength = 0;
353 result.dwMaximumCipherStrength = 0;
354 break;
355 case EncryptionPolicy.AllowNoEncryption:
356 result.dwMinimumCipherStrength = -1;
357 result.dwMaximumCipherStrength = 0;
358 break;
359 case EncryptionPolicy.NoEncryption:
360 result.dwMinimumCipherStrength = -1;
361 result.dwMaximumCipherStrength = -1;
362 break;
363 default:
365 }
366 result.dwFlags = flags;
367 result.grbitEnabledProtocols =
protocols;
368 return result;
369 }
static string net_invalid_enum
static string Format(string resourceFormat, object p1)