private void OnNativeCallback(ref ModuleCallbackFullAuthenticationIn authIn, int inSize, ref ModuleCallbackFullAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. flags = authIn.Flags; uri = authIn.Uri; protocol = authIn.Protocol; server = authIn.Server; obj = authIn.Object; port = authIn.Port; authtype = authIn.Authtype; username = authIn.Username; domain = authIn.Domain; defaultUser = authIn.DefaultUser; defaultDomain = authIn.DefaultDomain; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); // Copy the values back to the authOut. authOut.AbortAuth = abortAuth; authOut.Username = username; authOut.Domain = domain; authOut.Password = password; authOut.SavePassword = savePassword; authOut.Keyring = keyring; } }
private void OnNativeCallback(ref ModuleCallbackFillAuthenticationIn authIn, int inSize, ref ModuleCallbackFillAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; protocol = authIn.Protocol; server = authIn.Server; obj = authIn.Object; port = authIn.Port; authtype = authIn.Authtype; username = authIn.Username; domain = authIn.Domain; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); // Copy the values back to the authOut. authOut.Valid = valid; authOut.Username = username; authOut.Domain = domain; authOut.Password = password; } }
private void OnNativeCallback(ref ModuleCallbackStatusMessageIn authIn, int inSize, ref ModuleCallbackStatusMessageOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; message = authIn.Message; percentage = authIn.Percentage; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); } }
private void OnNativeCallback(ref ModuleCallbackAuthenticationIn authIn, int inSize, ref ModuleCallbackAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; realm = authIn.Realm; previousAttemptFailed = authIn.PreviousAttemptFailed; authType = authIn.AuthType; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); // Copy the values back to the authOut. authOut.Username = username; authOut.Password = password; } }
private void OnNativeCallback(ref ModuleCallbackSaveAuthenticationIn authIn, int inSize, ref ModuleCallbackSaveAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. keyring = authIn.Keyring; uri = authIn.Uri; protocol = authIn.Protocol; server = authIn.Server; obj = authIn.Object; port = authIn.Port; authtype = authIn.Authtype; username = authIn.Username; domain = authIn.Domain; password = authIn.Password; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); } }