keepasshttp-1.8.4.2/ 0000775 0000000 0000000 00000000000 13063065633 0014224 5 ustar 00root root 0000000 0000000 keepasshttp-1.8.4.2/.gitattributes 0000664 0000000 0000000 00000000016 13063065633 0017114 0 ustar 00root root 0000000 0000000 *.plgx -text
keepasshttp-1.8.4.2/.gitignore 0000664 0000000 0000000 00000000157 13063065633 0016217 0 ustar 00root root 0000000 0000000 *.swp
*.suo
obj
bin
create-plgx.bat
/#portable/
*.cer
*.pvk
*.csproj.user
/KeePassHttp/KeePassHttp.dll keepasshttp-1.8.4.2/KeePassHttp.sln 0000664 0000000 0000000 00000001637 13063065633 0017144 0 ustar 00root root 0000000 0000000
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeePassHttp", "KeePassHttp\KeePassHttp.csproj", "{9DFAB9D7-6BB5-4C6C-86EC-C67B494008D2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9DFAB9D7-6BB5-4C6C-86EC-C67B494008D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9DFAB9D7-6BB5-4C6C-86EC-C67B494008D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9DFAB9D7-6BB5-4C6C-86EC-C67B494008D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9DFAB9D7-6BB5-4C6C-86EC-C67B494008D2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
keepasshttp-1.8.4.2/KeePassHttp/ 0000775 0000000 0000000 00000000000 13063065633 0016417 5 ustar 00root root 0000000 0000000 keepasshttp-1.8.4.2/KeePassHttp/AccessControlForm.Designer.cs 0000664 0000000 0000000 00000013327 13063065633 0024101 0 ustar 00root root 0000000 0000000 namespace KeePassHttp
{
partial class AccessControlForm
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
System.Windows.Forms.Button AllowButton;
System.Windows.Forms.Button DenyButton;
this.EntriesBox = new System.Windows.Forms.ListBox();
this.RememberCheck = new System.Windows.Forms.CheckBox();
this.ConfirmTextLabel = new System.Windows.Forms.Label();
AllowButton = new System.Windows.Forms.Button();
DenyButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// AllowButton
//
AllowButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
AllowButton.Location = new System.Drawing.Point(176, 207);
AllowButton.Name = "AllowButton";
AllowButton.Size = new System.Drawing.Size(75, 23);
AllowButton.TabIndex = 1;
AllowButton.Text = "&Allow";
AllowButton.UseVisualStyleBackColor = true;
AllowButton.Click += new System.EventHandler(this.AllowButton_Click);
//
// DenyButton
//
DenyButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
DenyButton.Location = new System.Drawing.Point(257, 207);
DenyButton.Name = "DenyButton";
DenyButton.Size = new System.Drawing.Size(75, 23);
DenyButton.TabIndex = 2;
DenyButton.Text = "&Deny";
DenyButton.UseVisualStyleBackColor = true;
DenyButton.Click += new System.EventHandler(this.DenyButton_Click);
//
// EntriesBox
//
this.EntriesBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.EntriesBox.FormattingEnabled = true;
this.EntriesBox.Location = new System.Drawing.Point(12, 12);
this.EntriesBox.Name = "EntriesBox";
this.EntriesBox.Size = new System.Drawing.Size(320, 108);
this.EntriesBox.TabIndex = 0;
//
// RememberCheck
//
this.RememberCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.RememberCheck.AutoSize = true;
this.RememberCheck.Location = new System.Drawing.Point(12, 211);
this.RememberCheck.Name = "RememberCheck";
this.RememberCheck.Size = new System.Drawing.Size(138, 17);
this.RememberCheck.TabIndex = 3;
this.RememberCheck.Text = "Remember this decision";
this.RememberCheck.UseVisualStyleBackColor = true;
//
// ConfirmTextLabel
//
this.ConfirmTextLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ConfirmTextLabel.Location = new System.Drawing.Point(9, 136);
this.ConfirmTextLabel.Name = "ConfirmTextLabel";
this.ConfirmTextLabel.Size = new System.Drawing.Size(323, 65);
this.ConfirmTextLabel.TabIndex = 4;
this.ConfirmTextLabel.Text = "www.somewhere.com has requested access to passwords for the above item(s). Please" +
" select whether you want to allow access.";
//
// AccessControlForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(344, 242);
this.Controls.Add(this.ConfirmTextLabel);
this.Controls.Add(this.RememberCheck);
this.Controls.Add(DenyButton);
this.Controls.Add(AllowButton);
this.Controls.Add(this.EntriesBox);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AccessControlForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "KeePassHttp: Confirm Access";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox EntriesBox;
private System.Windows.Forms.CheckBox RememberCheck;
private System.Windows.Forms.Label ConfirmTextLabel;
}
} keepasshttp-1.8.4.2/KeePassHttp/AccessControlForm.cs 0000664 0000000 0000000 00000004733 13063065633 0022343 0 ustar 00root root 0000000 0000000 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KeePassLib;
namespace KeePassHttp
{
public partial class AccessControlForm : Form
{
public AccessControlForm()
{
InitializeComponent();
}
private void AllowButton_Click(object sender, EventArgs e)
{
Allowed = true;
Close();
}
private void DenyButton_Click(object sender, EventArgs e)
{
Denied = true;
Close();
}
public bool Allowed = false;
public bool Denied = false;
public bool Remember
{
get { return RememberCheck.Checked; }
}
public List Entries
{
set
{
EntriesBox.SelectionMode = SelectionMode.None;
Count = value.Count;
SetLabel();
foreach (var e in value)
{
if (e == null || e.Strings == null ||
e.Strings.Get(PwDefs.TitleField) == null) continue;
var title = e.Strings.Get(PwDefs.TitleField).ReadString();
if (Plugin == null || Plugin.GetUserPass(e) == null)
continue;
var username = Plugin.GetUserPass(e)[0];
EntriesBox.Items.Add(title + " - " + username);
}
}
}
public string Host
{
set
{
_Host = value;
SetLabel();
}
}
private void SetLabel()
{
if (_Host == null)
return;
ConfirmTextLabel.Text = String.Format(
Message,
_Host,
Count == 1 ? "item" : "items",
Count == 1 ? "" : "\nYou can only grant access to all items.",
Count == 1 ? "" : " to all of them"
);
}
private int Count = 0;
private const string Message = "{0} has requested access to passwords for the above {1}.{2} " +
"Please select whether you want to allow access{3}.";
private string _Host = null;
internal KeePassHttpExt Plugin = null;
}
}
keepasshttp-1.8.4.2/KeePassHttp/AccessControlForm.resx 0000664 0000000 0000000 00000014060 13063065633 0022711 0 ustar 00root root 0000000 0000000
text/microsoft-resx
2.0
System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
False
False