Commit Graph

8778 Commits

Author SHA1 Message Date
Manoj Ampalam 17efb12f6f ssh client E2E tests (#138)
https://github.com/PowerShell/Win32-OpenSSH/issues/619
PowerShell/Win32-OpenSSH#623


* C2

* C3

* C4

* C5
2017-05-12 10:31:59 -07:00
Manoj Ampalam 9c0031de34 E2E tests for ssh key management
PowerShell/Win32-OpenSSH#613
2017-05-10 14:47:03 -07:00
Clouds 77cdb7086d Fix RegEnumValueW returned 234 (#131)
RegEnumValueW may return ERROR_MORE_DATA (234).
If lpData is NULL and lpcbData is non-NULL, the function stores the size of the data, in bytes, in the variable pointed to by lpcbData. This enables an application to determine the best way to allocate a buffer for the data.
If the buffer specified by lpData is not large enough to hold the data, the function returns ERROR_MORE_DATA and stores the required buffer size in the variable pointed to by lpcbData. In this case, the contents of lpData are undefined.
2017-05-09 22:00:32 -07:00
Manoj Ampalam 9491729542 Revert recent change and run sshd back in service account (#134)
https://github.com/PowerShell/Win32-OpenSSH/issues/681
2017-05-09 21:46:46 -07:00
bagajjal 0fe590b192 multiple fixes (#132)
PowerShell/Win32-OpenSSH#715
PowerShell/Win32-OpenSSH#714
2017-05-09 14:08:22 -07:00
bagajjal 7d929c2954 Fix sshd logging (#128)
PowerShell/Win32-OpenSSH#709
https://github.com/PowerShell/Win32-OpenSSH/issues/708
2017-05-07 22:51:24 -07:00
Yanbing fae64876f3 cranck version 2017-05-04 11:39:00 -07:00
Yanbing ba4ee6f3de Fixed bug in Administrators group lookup logic 2017-05-04 11:38:03 -07:00
Yanbing 6b807ae229 file permission on ssh_config, authorized_keys, private keys, host keys, public keys. (#110)
1. Add file permission check when load or add ssh_config, authorized_keys, private keys, host keys,.
2. set the owner and ACE for create secure file, ex, private key in ssh-keygen.exe
3. Update script OpenSSHTestHelper.psm1 to be able to run Install-OpenSSH if the sshd is running on the machine.
4. add OpenSSHBinPath to path.
5. change indents in agentconfig.c
6. update test script to represent the changes
7. Add tests for:
* authorized_keys and ssh-keygen testing
* host keys file perm testing
* user private key file perm testing
* ssh-add test
* user ssh_config
2017-05-01 14:18:20 -07:00
Oleg S 16b0175b8e shell: Add func FreeQueueEvent for correct uninitialize shell wrapper (#115)
* shell: Add func FreeQueueEvent for correct uninitialize shell wrapper

* shell: Close all handles on exit
2017-04-27 21:05:16 -07:00
Oleg S 339b2c7727 shell: Cleanup shellhost (use func SendKeyStroke) (#116)
* shell: Cleanup shellhost (use func SendKeyStroke)

* shell: Fix console key mapping

Fix IntelliSense error:
a value of type "const char [6]" cannot be used to initialize an entity of type "char [5]"
2017-04-27 21:04:14 -07:00
Oleg S 107fdd8730 sshd: Unlink unused environments after executing child process (#119) 2017-04-27 21:01:04 -07:00
Manoj Ampalam 8a83d3360c Fixed key based auth with talking to docker containers
PowerShell/Win32-OpenSSH#677
2017-04-27 21:00:12 -07:00
Yanbing d7ab0aa717 fix for issue 685 (#122)
PowerShell/Win32-OpenSSH#685
2017-04-27 11:47:01 -07:00
Manoj Ampalam 1ff1b07410 Run SSHD as NetworkService (#121)
PowerShell/Win32-OpenSSH#681
2017-04-24 22:02:03 -07:00
Manoj Ampalam bc3f21a6a3 Updated Build helper PS module to support builds with NoOpenSSL 2017-04-19 22:07:37 -07:00
Manoj Ampalam 852173dc70 cranked version 2017-04-16 13:27:47 -07:00
Manoj Ampalam 5218d4fc45 Revereted "Take Ownership Privileges" change on key auth tokens
Fixed https://github.com/PowerShell/Win32-OpenSSH/issues/611
2017-04-16 13:17:57 -07:00
Oleg S 258c10c4dc win32: Fix include types.h from win32compat directory (#111) 2017-04-16 12:56:28 -07:00
Oleg S ab9e5f0452 sshd: Fix mem leak after call GetCommandLineW (#112) 2017-04-16 12:55:35 -07:00
Manoj Ampalam c3c5c1fa7f Support I/O redirection in all ssh clients (ssh.exe, sftp.exe and scp.exe) (#113)
PowerShell/Win32-OpenSSH#668
2017-04-14 16:15:32 -07:00
Manoj Ampalam b924b42dea Ported recent changes for Windows 2017-04-10 16:10:15 -07:00
Manoj Ampalam b533d79ced Removed md-sha256.c from libssh 2017-04-10 15:17:25 -07:00
Manoj Ampalam e91d1f7ef1 Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw 2017-04-10 15:11:19 -07:00
Manoj Ampalam 3965d200c7 Removed ssh-lsa.dll and setup reboot restriction (#108)
https://github.com/PowerShell/Win32-OpenSSH/issues/657
2017-04-08 09:27:15 -07:00
Manoj Ampalam 53aa139ec8 Fixed: High CPU usage and log file growing up (https://github.com/PowerShell/Win32-OpenSSH/issues/606)
Added fix recommended by @richard-browne [here](https://github.com/PowerShell/Win32-OpenSSH/files/414456/sockio.c.txt)
2017-04-05 12:29:41 -07:00
Manoj Ampalam 5ea573d04e Cranked version, Added Package-OpenSSH routine, updated install-sshd (#106) 2017-04-04 12:05:31 -07:00
Manoj Ampalam 34a3f92bcd Fix (#105)
https://github.com/PowerShell/Win32-OpenSSH/issues/556
2017-04-03 13:48:23 -07:00
Manoj Ampalam c09ef3f1cb Fixed sshfs issue
https://github.com/PowerShell/Win32-OpenSSH/issues/586
2017-04-03 13:36:29 -07:00
bagajjal 589f2db723 Enabled SFTP E2E tests based on test framework changes (#101) 2017-03-31 11:47:24 -07:00
Darren Tucker d9048861be Check for and use gcc's -pipe.
Speeds up configure and build by a couple of percent.  ok djm@
2017-03-31 11:04:43 +11:00
Yanbing 0d1b232d3b Terminal escape sequence handling in a non-TTY stream for Windows (#94)
To prevent screwing up terminal settings on windows when printing to the terminal, turn off the virtual termial before print out to console. The file call these funtions are from scp.c,  sftp.c and sshconnect(calls smprintf). The virtual termial are not enabled in scp and sftp. turn off it in vfmprintf is enough for now.
2017-03-29 12:52:51 -07:00
Yanbing 6c7fb47a07 Test scripts updates and readme (#97) 2017-03-29 12:48:26 -07:00
Manoj Ampalam 2d94c9b3aa Replaced ntrights with Powershell equivalent logic (#99)
https://github.com/PowerShell/Win32-OpenSSH/issues/234
2017-03-28 22:35:32 -07:00
Darren Tucker 282cad2240 Import fmt_scaled.c rev 1.16 from OpenBSD.
Fix overly-conservative overflow checks on mulitplications and add checks
on additions.  This allows scan_scaled to work up to +/-LLONG_MAX (LLONG_MIN
will still be flagged as a range error).  ok millert@
2017-03-29 16:34:44 +11:00
Darren Tucker c73a229e4e Import fmt_scaled.c rev 1.15 from OpenBSD.
Collapse underflow and overflow checks into a single block.
ok djm@ millert@
2017-03-29 16:34:02 +11:00
Darren Tucker d427b73bf5 Import fmt_scaled.c rev 1.14 from OpenBSD.
Catch integer underflow in scan_scaled reported by Nicolas Iooss.
ok deraadt@ djm@
2017-03-29 16:32:57 +11:00
Darren Tucker d13281f296 Don't check privsep user or path when unprivileged
If running with privsep (mandatory now) as a non-privileged user, we
don't chroot or change to an unprivileged user however we still checked
the existence of the user and directory.  Don't do those checks if we're
not going to use them.  Based in part on a patch from Lionel Fourquaux
via Corinna Vinschen, ok djm@
2017-03-29 12:39:39 +11:00
Darren Tucker f2742a481f Remove SHA256 EVP wrapper implementation.
All supported versions of OpenSSL should now have SHA256 so remove our
EVP wrapper implementaion.  ok djm@
2017-03-29 10:50:31 +11:00
Darren Tucker 5346f271fc Remove check for OpenSSL < 0.9.8g.
We no longer support OpenSSL < 1.0.1 so remove check for unreliable ECC
in OpenSSL < 0.9.8g.
2017-03-29 10:23:58 +11:00
Darren Tucker 8fed0a5fe7 Remove compat code for OpenSSL < 0.9.7.
Resyncs that code with OpenBSD upstream.
2017-03-29 10:16:15 +11:00
Darren Tucker 608ec1f62f Remove SSHv1 code path.
Server-side support for Protocol 1 has been removed so remove !compat20
PAM code path.
2017-03-29 09:50:54 +11:00
Manoj Ampalam 6fd81a671c Temporary fix to ssh redirection issue in Powershell environment (+ one other minor fix) (#98)
PowerShell/Win32-OpenSSH#609
PowerShell/Win32-OpenSSH#608
2017-03-28 14:54:19 -07:00
bagajjal dd8cfb0e06 fixed the console scroll down issue
https://github.com/PowerShell/Win32-OpenSSH/issues/585
2017-03-25 00:07:30 -07:00
Manoj Ampalam b5b05a5eac Added HAVE_LLABS to account for openssh master changes 2017-03-24 13:10:01 -07:00
Manoj Ampalam 77117380e5 Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw 2017-03-24 12:51:38 -07:00
Manoj Ampalam 0f8c57063f Merge branch 'latestw' of https://github.com/PowerShell/openssh-portable into latestw_all 2017-03-24 12:49:31 -07:00
Yanbing 425bc4033f latestw + Test Infra upgrades
Includes
- CR changes for upstream PR
- Fix in spawn_child logic
- Test Infra upgrades
2017-03-24 12:35:52 -07:00
Darren Tucker 7af27bf538 Enable ldns when using ldns-config.
Actually enable ldns when attempting to use ldns-config.  bz#2697, patch
from fredrik at fornwall.net.
2017-03-24 09:44:56 +11:00
Damien Miller 58b8cfa2a0 Missing header on Linux/s390
Patch from Jakub Jelen
2017-03-22 12:43:02 +11:00