Skip to content

Commit

Permalink
Clean up licenses and usings
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed Jul 26, 2013
1 parent 3b0810d commit 8a82247
Show file tree
Hide file tree
Showing 76 changed files with 2,073 additions and 429 deletions.
17 changes: 17 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
All code unless otherwise specified is licensed under the MIT License.
[License.MIT.txt]

lib/NUnit/* is licensed under its own license.
[License.NUnit.txt]

SshAgentLib/Microsoft/* is licensed under the Microsoft Limited Public License.
[License.MS-LPL.txt]

Ui/WinForms/FileDlgExtenders/* is licensed under the BSD License.
[License.BSD.txt]

Ui/WinForms/WindowsAPICodepack/* is licensed under its own license.
[License.WindowsAPICodePack.txt]

Ui/WinForms/SplitButton.cs is licensed under the BSD License.
[License.BSD.txt]
23 changes: 15 additions & 8 deletions lib/SplitButton/License.txt → License.BSD.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
Copyright (c) 2010, wyDay
Ui/WinForms/SplitButton.cs
Copyright (c) 2011, wyDay
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Ui/WinForms/FileDlgExtenders/*
Copyright (c) 2006, Gustavo Franco <[email protected]>
Copyright � Decebal Mihailescu 2007-2010
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Expand Down
23 changes: 23 additions & 0 deletions License.MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2012-2013 David Lechner

lib/BouncyCastle/BouncyCastle.dll
Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle
(http://www.bouncycastle.org)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
67 changes: 67 additions & 0 deletions License.MS-LPL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Microsoft Limited Public License

This license governs use of code marked as �sample� or �example� available on
this web site without a license agreement, as provided under the section above
titled �NOTICE SPECIFIC TO SOFTWARE AVAILABLE ON THIS WEB SITE.� If you use such
code (the �software�), you accept this license. If you do not accept the
license, do not use the software.

1. Definitions

The terms �reproduce,� �reproduction,� �derivative works,� and
�distribution� have the same meaning here as under U.S. copyright law.

A �contribution� is the original software, or any additions or changes to
the software.

A �contributor� is any person that distributes its contribution under this
license.

�Licensed patents� are a contributor�s patent claims that read directly on
its contribution.

2. Grant of Rights

A. Copyright Grant - Subject to the terms of this license, including the
license conditions and limitations in section 3, each contributor grants
you a non-exclusive, worldwide, royalty-free copyright license to
reproduce its contribution, prepare derivative works of its
contribution, and distribute its contribution or any derivative works
that you create.

B. Patent Grant - Subject to the terms of this license, including the
license conditions and limitations in section 3, each contributor grants
you a non-exclusive, worldwide, royalty-free license under its licensed
patents to make, have made, use, sell, offer for sale, import, and/or
otherwise dispose of its contribution in the software or derivative
works of the contribution in the software.

3. Conditions and Limitations

A. No Trademark License- This license does not grant you rights to use any
contributors� name, logo, or trademarks.

B. If you bring a patent claim against any contributor over patents that
you claim are infringed by the software, your patent license from such
contributor to the software ends automatically.

C. If you distribute any portion of the software, you must retain all
copyright, patent, trademark, and attribution notices that are present
in the software.

D. If you distribute any portion of the software in source code form, you
may do so only under this license by including a complete copy of this
license with your distribution. If you distribute any portion of the
software in compiled or object code form, you may only do so under a
license that complies with this license.

E. The software is licensed �as-is.� You bear the risk of using it. The
contributors give no express warranties, guarantees or conditions. You
may have additional consumer rights under your local laws which this
license cannot change. To the extent permitted under your local laws,
the contributors exclude the implied warranties of merchantability,
fitness for a particular purpose and non-infringement.

F. Platform Limitation - The licenses granted in sections 2(A) and 2(B)
extend only to the software or derivative works that you create that run
on a Microsoft Windows operating system product.
25 changes: 25 additions & 0 deletions License.NUnit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright � 2002-2012 Charlie Poole
Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov
Copyright � 2000-2002 Philip A. Craig

This software is provided 'as-is', without any express or implied warranty. In
no event will the authors be held liable for any damages arising from the use of
this software.

Permission is granted to anyone to use this software for any purpose, including
commercial applications, and to alter it and redistribute it freely, subject to
the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software in
a product, an acknowledgment (see the following) in the product
documentation is required.

Portions Copyright � 2002-2012 Charlie Poole or Copyright � 2002-2004
James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright �
2000-2002 Philip A. Craig

2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.
154 changes: 154 additions & 0 deletions License.WindowsAPICodePack.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
MICROSOFT SOFTWARE LICENSE TERMS
MICROSOFT WINDOWS API CODE PACK FOR MICROSOFT .NET FRAMEWORK
--------------------------------------------------------------------------------
These license terms are an agreement between Microsoft Corporation (or based on
where you live, one of its affiliates) and you. Please read them. They apply to
the software named above, which includes the media on which you received it, if
any. The terms also apply to any Microsoft
- updates,
- supplements,
- Internet-based services, and
- support services
for this software, unless other terms accompany those items. If so, those terms
apply.
--------------------------------------------------------------------------------
BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT
USE THE SOFTWARE.

If you comply with these license terms, you have the rights below.

1. INSTALLATION AND USE RIGHTS.

- You may use any number of copies of the software to design, develop and test
your programs that run on a Microsoft Windows operating system.

- This agreement gives you rights to the software only. Any rights to a
Microsoft Windows operating system (such as testing pre-release versions of
Windows in a live operating environment) are provided separately by the
license terms for Windows.

2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS.

a. Distributable Code. You may modify, copy, and distribute the software, in
source or compiled form, to run on a Microsoft Windows operating system.

ii. Distribution Requirements. If you distribute the software, you must
- require distributors and external end users to agree to terms that protect
it at least as much as this agreement;
- if you modify the software and distribute such modified files, include
prominent notices in such modified files so that recipients know that they
are not receiving the original software;
- display your valid copyright notice on your programs; and
- indemnify, defend, and hold harmless Microsoft from any claims, including
attorneys� fees, related to the distribution or use of your programs or to
your modifications to the software.

iii.Distribution Restrictions. You may not
- alter any copyright, trademark or patent notice in the software;
- use Microsoft�s trademarks in your programs� names or in a way that
suggests your programs come from or are endorsed by Microsoft;
- include the software in malicious, deceptive or unlawful programs; or
- modify or distribute the source code of the software so that any part of
it becomes subject to an Excluded License. An Excluded License is one that
requires, as a condition of use, modification or distribution, that
- the code be disclosed or distributed in source code form; or
- others have the right to modify it.

3. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only
gives you some rights to use the software. Microsoft reserves all other
rights. Unless applicable law gives you more rights despite this limitation,
you may use the software only as expressly permitted in this agreement.

4. EXPORT RESTRICTIONS. The software is subject to United States export laws
and regulations. You must comply with all domestic and international export
laws and regulations that apply to the software. These laws include
restrictions on destinations, end users and end use. For additional
information, see <http://www.microsoft.com/exporting>.

5. SUPPORT SERVICES. Because this software is �as is,� we may not provide
support services for it.

6. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates,
Internet-based services and support services that you use, are the entire
agreement for the software and support services.

7. APPLICABLE LAW.

a. United States. If you acquired the software in the United States,
Washington state law governs the interpretation of this agreement and
applies to claims for breach of it, regardless of conflict of laws
principles. The laws of the state where you live govern all other
claims, including claims under state consumer protection laws, unfair
competition laws, and in tort.

b. Outside the United States. If you acquired the software in any other
country, the laws of that country apply.

8. LEGAL EFFECT. This agreement describes certain legal rights. You may have
other rights under the laws of your country. You may also have rights with
respect to the party from whom you acquired the software. This agreement
does not change your rights under the laws of your country if the laws of
your country do not permit it to do so.

9. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED �AS-IS.� YOU BEAR THE RISK
OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR
CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS
WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL
LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.

10. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM
MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT
RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL,
INDIRECT OR INCIDENTAL DAMAGES.

This limitation applies to
- anything related to the software, services, content (including code) on
third party Internet sites, or third party programs; and
- claims for breach of contract, breach of warranty, guarantee or
condition, strict liability, negligence, or other tort to the extent
permitted by applicable law.

It also applies even if Microsoft knew or should have known about the
possibility of the damages. The above limitation or exclusion may not apply
to you because your country may not allow the exclusion or limitation of
incidental, consequential or other damages.

Please note: As this software is distributed in Quebec, Canada, some of the
clauses in this agreement are provided below in French.

Remarque : Ce logiciel �tant distribu� au Qu�bec, Canada, certaines des clauses
dans ce contrat sont fournies ci-dessous en fran�ais.

EXON�RATION DE GARANTIE. Le logiciel vis� par une licence est offert � tel
quel �. Toute utilisation de ce logiciel est � votre seule risque et p�ril.
Microsoft n�accorde aucune autre garantie expresse. Vous pouvez b�n�ficier de
droits additionnels en vertu du droit local sur la protection des consommateurs,
que ce contrat ne peut modifier. La ou elles sont permises par le droit locale,
les garanties implicites de qualit� marchande, d�ad�quation � un usage
particulier et d�absence de contrefa�on sont exclues.

LIMITATION DES DOMMAGES-INT�R�TS ET EXCLUSION DE RESPONSABILIT� POUR LES
DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une
indemnisation en cas de dommages directs uniquement � hauteur de 5,00 $ US. Vous
ne pouvez pr�tendre � aucune indemnisation pour les autres dommages, y compris
les dommages sp�ciaux, indirects ou accessoires et pertes de b�n�fices.

Cette limitation concerne :
- tout ce qui est reli� au logiciel, aux services ou au contenu (y compris le
code) figurant sur des sites Internet tiers ou dans des programmes tiers ;
et
- les r�clamations au titre de violation de contrat ou de garantie, ou au
titre de responsabilit� stricte, de n�gligence ou d�une autre faute dans la
limite autoris�e par la loi en vigueur.

Elle s�applique �galement, m�me si Microsoft connaissait ou devrait conna�tre
l��ventualit� d�un tel dommage. Si votre pays n�autorise pas l�exclusion ou la
limitation de responsabilit� pour les dommages indirects, accessoires ou de
quelque nature que ce soit, il se peut que la limitation ou l�exclusion
ci-dessus ne s�appliquera pas � votre �gard.

EFFET JURIDIQUE. Le pr�sent contrat d�crit certains droits juridiques. Vous
pourriez avoir d�autres droits pr�vus par les lois de votre pays. Le pr�sent
contrat ne modifie pas les droits que vous conf�rent les lois de votre pays si
celles-ci ne le permettent pas.
45 changes: 30 additions & 15 deletions SshAgentLib/Agent.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,40 @@
//
// Agent.cs
//
// Author(s): David Lechner <[email protected]>
// Max Laverse
//
// Copyright (c) 2012-2013 David Lechner
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Diagnostics;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using System.Text;
using System.Security;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Collections.ObjectModel;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Math.EC;
using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Asn1.Sec;
using System.Collections.Specialized;
using System.Timers;
using System.ComponentModel;
using System.Security;
using System.Security.Cryptography;
using System.Timers;
using Org.BouncyCastle.Crypto.Encodings;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Security;

namespace dlech.SshAgentLib
{
Expand Down
Loading

0 comments on commit 8a82247

Please sign in to comment.