Skip to content

Commit

Permalink
WinSCP 5.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
martinprikryl committed Apr 14, 2014
1 parent 576e9d2 commit 1b7a627
Show file tree
Hide file tree
Showing 61 changed files with 708 additions and 227 deletions.
8 changes: 5 additions & 3 deletions deployment/WinSCPnet.nuspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>WinSCPnet</id>
<id>WinSCP</id>
<version>$version$</version>
<title>WinSCP .NET assembly</title>
<authors>Martin Prikryl</authors>
<owners>Martin Prikryl</owners>
<licenseUrl>http://winscp.net/eng/docs/library#license</licenseUrl>
<licenseUrl>http://www.mozilla.org/MPL/2.0/</licenseUrl>
<projectUrl>http://winscp.net/eng/docs/library</projectUrl>
<iconUrl>http://winscp.net/pad/winscp.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand All @@ -15,7 +15,9 @@

The library is primarily intended for advanced automation tasks that require conditional processing, loops or other control structures for which the basic scripting interface is too limited. The library is not a general purpose file transfer library. It particularly lacks support for interactive processing and as such it is not well suited for use in GUI applications.

For documentation and examples of use, see project website.</description>
For documentation and examples of use, see project website.

The NuGet package includes the assembly itself and a required WinSCP executable. When installed, it adds the assembly as reference to your project and sets up WinSCP executable to be copied to project output directory, so that it can be found on run-time.</description>
<copyright>Copyright © 2012-2014 Martin Prikryl</copyright>
<tags>winscp sftp ftp ftps scp transfer</tags>
</metadata>
Expand Down
5 changes: 3 additions & 2 deletions deployment/winscpsetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -1416,9 +1416,10 @@ begin
Log('Preparing intallation report');
ReportData := Format(
'installed=%d&silent=%d&ver=%s&lang=%s&', [
'installed=%d&silent=%d&ver=%s&lang=%s&prevver=%s&', [
Integer(InstallationDone), Integer(WizardSilent),
ExpandConstant('{#VersionOnly}'), ActiveLanguage]);
ExpandConstant('{#VersionOnly}'), ActiveLanguage,
PrevVersion]);
#ifdef Chrome
ReportData := ReportData +
Expand Down
2 changes: 1 addition & 1 deletion dotnet/properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

[assembly: AssemblyVersion("1.1.5.0")]
[assembly: AssemblyFileVersion("1.1.5.0")]
[assembly: AssemblyInformationalVersionAttribute("5.5.2.0")]
[assembly: AssemblyInformationalVersionAttribute("5.5.3.0")]

[assembly: CLSCompliant(true)]

2 changes: 1 addition & 1 deletion libs/openssl/crypto/asn1/asn1_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static ERR_STRING_DATA ASN1_str_reasons[]=
{ERR_REASON(ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE),"unknown public key type"},
{ERR_REASON(ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM),"unknown signature algorithm"},
{ERR_REASON(ASN1_R_UNKNOWN_TAG) ,"unknown tag"},
{ERR_REASON(ASN1_R_UNKOWN_FORMAT) ,"unkown format"},
{ERR_REASON(ASN1_R_UNKOWN_FORMAT) ,"unknown format"},
{ERR_REASON(ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE),"unsupported any defined by type"},
{ERR_REASON(ASN1_R_UNSUPPORTED_CIPHER) ,"unsupported cipher"},
{ERR_REASON(ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM),"unsupported encryption algorithm"},
Expand Down
2 changes: 1 addition & 1 deletion libs/openssl/crypto/bio/bss_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static int MS_CALLBACK slg_puts(BIO *bp, const char *str)

static void xopenlog(BIO* bp, char* name, int level)
{
if (GetVersion() < 0x80000000)
if (check_winnt())
bp->ptr = RegisterEventSourceA(NULL,name);
else
bp->ptr = NULL;
Expand Down
11 changes: 11 additions & 0 deletions libs/openssl/crypto/bn/bn.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ BIGNUM *BN_mod_inverse(BIGNUM *ret,
BIGNUM *BN_mod_sqrt(BIGNUM *ret,
const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);

void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);

/* Deprecated versions */
#ifndef OPENSSL_NO_DEPRECATED
BIGNUM *BN_generate_prime(BIGNUM *ret,int bits,int safe,
Expand Down Expand Up @@ -774,11 +776,20 @@ int RAND_pseudo_bytes(unsigned char *buf,int num);

#define bn_fix_top(a) bn_check_top(a)

#define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2)
#define bn_wcheck_size(bn, words) \
do { \
const BIGNUM *_bnum2 = (bn); \
assert(words <= (_bnum2)->dmax && words >= (_bnum2)->top); \
} while(0)

#else /* !BN_DEBUG */

#define bn_pollute(a)
#define bn_check_top(a)
#define bn_fix_top(a) bn_correct_top(a)
#define bn_check_size(bn, bits)
#define bn_wcheck_size(bn, words)

#endif

Expand Down
52 changes: 52 additions & 0 deletions libs/openssl/crypto/bn/bn_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,3 +824,55 @@ int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b,
}
return bn_cmp_words(a,b,cl);
}

/*
* Constant-time conditional swap of a and b.
* a and b are swapped if condition is not 0. The code assumes that at most one bit of condition is set.
* nwords is the number of words to swap. The code assumes that at least nwords are allocated in both a and b,
* and that no more than nwords are used by either a or b.
* a and b cannot be the same number
*/
void BN_consttime_swap(BN_ULONG condition, BIGNUM *a, BIGNUM *b, int nwords)
{
BN_ULONG t;
int i;

bn_wcheck_size(a, nwords);
bn_wcheck_size(b, nwords);

assert(a != b);
assert((condition & (condition - 1)) == 0);
assert(sizeof(BN_ULONG) >= sizeof(int));

condition = ((condition - 1) >> (BN_BITS2 - 1)) - 1;

t = (a->top^b->top) & condition;
a->top ^= t;
b->top ^= t;

#define BN_CONSTTIME_SWAP(ind) \
do { \
t = (a->d[ind] ^ b->d[ind]) & condition; \
a->d[ind] ^= t; \
b->d[ind] ^= t; \
} while (0)


switch (nwords) {
default:
for (i = 10; i < nwords; i++)
BN_CONSTTIME_SWAP(i);
/* Fallthrough */
case 10: BN_CONSTTIME_SWAP(9); /* Fallthrough */
case 9: BN_CONSTTIME_SWAP(8); /* Fallthrough */
case 8: BN_CONSTTIME_SWAP(7); /* Fallthrough */
case 7: BN_CONSTTIME_SWAP(6); /* Fallthrough */
case 6: BN_CONSTTIME_SWAP(5); /* Fallthrough */
case 5: BN_CONSTTIME_SWAP(4); /* Fallthrough */
case 4: BN_CONSTTIME_SWAP(3); /* Fallthrough */
case 3: BN_CONSTTIME_SWAP(2); /* Fallthrough */
case 2: BN_CONSTTIME_SWAP(1); /* Fallthrough */
case 1: BN_CONSTTIME_SWAP(0);
}
#undef BN_CONSTTIME_SWAP
}
6 changes: 3 additions & 3 deletions libs/openssl/crypto/buildinf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
/* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */
#define CFLAGS "cl /MD /Ox /O2 /Ob2 -DOPENSSL_THREADS -DDSO_WIN32 -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGINE "
#define PLATFORM "VC-WIN32"
#define DATE "Fri Jan 10 14:05:30 2014"
#define DATE "Wed Apr 9 09:25:41 2014"
#endif
#ifdef MK1MF_PLATFORM_BC_NT
/* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */
#define CFLAGS "bcc32 -DWIN32_LEAN_AND_MEAN -q -w-ccc -w-rch -w-pia -w-aus -w-par -w-inl -c -tWC -tWM -DOPENSSL_SYSNAME_WIN32 -DL_ENDIAN -DDSO_WIN32 -D_stricmp=stricmp -D_strnicmp=strnicmp -O2 -ff -fp -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE "
#define CFLAGS "bcc32 -DWIN32_LEAN_AND_MEAN -q -w-ccc -w-rch -w-pia -w-aus -w-par -w-inl -c -tWC -tWM -DOPENSSL_SYSNAME_WIN32 -DL_ENDIAN -DDSO_WIN32 -D_stricmp=stricmp -D_strnicmp=strnicmp -D_timeb=timeb -D_ftime=ftime -O2 -ff -fp -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE "
#define PLATFORM "BC-NT"
#define DATE "Fri Jan 10 14:05:30 2014"
#define DATE "Wed Apr 9 09:25:42 2014"
#endif
2 changes: 1 addition & 1 deletion libs/openssl/crypto/cryptlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ void OPENSSL_showfatal (const char *fmta,...)

#if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333
/* this -------------v--- guards NT-specific calls */
if (GetVersion() < 0x80000000 && OPENSSL_isservice() > 0)
if (check_winnt() && OPENSSL_isservice() > 0)
{ HANDLE h = RegisterEventSource(0,_T("OPENSSL"));
const TCHAR *pmsg=buf;
ReportEvent(h,EVENTLOG_ERROR_TYPE,0,0,0,1,0,&pmsg,0);
Expand Down
2 changes: 1 addition & 1 deletion libs/openssl/crypto/evp/bio_b64.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static int b64_read(BIO *b, char *out, int outl)
}

/* we fell off the end without starting */
if (j == i)
if ((j == i) && (num == 0))
{
/* Is this is one long chunk?, if so, keep on
* reading until a new line. */
Expand Down
Loading

0 comments on commit 1b7a627

Please sign in to comment.