internal void SetCertHashLength(int certHashLength) { int cbtLength = _cbtPrefixByteArraySize + certHashLength; Length = s_secChannelBindingSize + cbtLength; SecChannelBindings channelBindings = new SecChannelBindings() { ApplicationDataLength = cbtLength, ApplicationDataOffset = s_secChannelBindingSize }; Marshal.StructureToPtr(channelBindings, handle, true); }
internal void SetCertHashLength(int certHashLength) { int cbtLength = _cbtPrefixByteArraySize + certHashLength; Length = s_secChannelBindingSize + cbtLength; SecChannelBindings channelBindings = new SecChannelBindings() { ApplicationDataLength = cbtLength, ApplicationDataOffset = s_secChannelBindingSize }; Marshal.StructureToPtr(channelBindings, handle, true); }