Commit Graph

945 Commits

Author SHA1 Message Date
Tess Gauthier 04dd589b95
fix debug exception with static method (#607) 2022-08-03 10:42:55 -04:00
PaulHigin 0fd0ac6838 Fix sshd executable name and resolve source path. 2022-08-02 16:04:12 -07:00
Tess Gauthier ff6cfe6fdf
add product version runtime parameter to MSI (#603)
* add product version runtime parameter

* add comment

Co-authored-by: Steve Lee <slee@microsoft.com>

Co-authored-by: Steve Lee <slee@microsoft.com>
2022-05-04 18:13:22 -04:00
bagajjal cf06f991f9
CHROOT - fix symbolic link that refers to a network share (#596) 2022-04-15 13:49:41 -07:00
Marc-André Moreau 89cec9823c
fix duplicate symbols from posix_compat, openbsd_compat with libcrypto (#593) 2022-04-08 14:03:18 -07:00
Damien Miller 94eb6858ef update version numbers for release 2022-04-06 10:47:48 +10:00
Tess Gauthier 9598cec2fc
fix install-sshd incompatability with windows pwsh 5.1 (#590) 2022-03-24 10:32:32 -07:00
bagajjal aa0d37b16e
Crank V8.9.1.0 (#588) 2022-03-22 14:45:16 -07:00
bagajjal 0bac502e32
Upgrade to V3.4.3.0 (#587) 2022-03-22 09:57:16 -07:00
Tess Gauthier 672c7eb270
Update install sshd (#585) 2022-03-21 15:02:15 -07:00
Tess Gauthier 6bd66d4685
update ssh-agent privileges to match install scripts for pkcs11/fido scenarios (#584) 2022-03-21 13:13:27 -07:00
bagajjal bd0d488a3c
Update MSI with ssh-sk-helper.exe, ssh-pkcs11-helper.exe, license.txt, notice.txt (#581) 2022-03-17 16:59:44 -07:00
bagajjal b90820169b
add ssh-pkcs11-helper.exe to build output, fix create_no_window for ssh-sk-helper.exe (#579) 2022-03-16 16:48:29 -07:00
Balu Gajjala 5d6a3f5641 Merge branch 'V8_9_test' into latestw_all 2022-03-15 16:31:47 -07:00
Balu Gajjala 73c976878e Crank V8.9 2022-03-15 13:13:19 -07:00
Balu Gajjala 78cf768fa9 remove unnecessary changes 2022-03-11 18:09:53 -08:00
Balu Gajjala 9a8746842a Fix failed tests - 1 2022-03-11 13:53:27 -08:00
Andrew f392f20ecd
3rd party notices for releases (#575) 2022-03-08 12:42:44 -08:00
bagajjal 2d3ca752f9
V8 9 test (#574) 2022-03-07 10:48:41 -08:00
Balu Gajjala 9a85082806 V8.9 build errors, unit tests successful 2022-03-04 18:40:49 -08:00
Tess Gauthier a3023c2d09
modify key event logic to fix ctrl+space not being sent (#569) 2022-03-02 10:40:36 -08:00
Balu Gajjala ee54e6bd06 Merge upstream V8_9 2022-02-24 16:57:16 -08:00
bagajjal 3a33ea8dee
Bagajjal/fix minor issues (#568) 2022-02-18 17:33:28 -08:00
Tess Gauthier 96a3b6f802
add libcborVersion for compliance tasks (#567) 2022-02-18 11:34:51 -08:00
Yan Tesis c89890c3a4
Adding PKCS11 support to SSH agent (#537) 2022-02-17 17:31:50 -08:00
Tess Gauthier 5c32823fb9
Binskim add compiler option (#564) 2022-02-16 09:51:49 -08:00
Damien Miller 62a2d4e50b update versions in preparation for 8.9 release 2022-02-16 16:26:17 +11:00
Vivian Thiebaut 602a02995a
Handle Path Variable: Prepend System path to User path (#563) 2022-02-07 15:00:39 -08:00
Tess Gauthier c2765de0f7
change build tools chocolatey install error message (#562) 2022-02-07 10:27:45 -08:00
Tess Gauthier 9d733203d6
fix folder permissions for programdata\ssh during server install (#549) 2022-02-04 16:22:59 -08:00
Andrew 762704b8b0
Switched to use MS mirror of libfido2 (#561) 2022-02-04 13:07:05 -08:00
vthiebaut10 66b991a47c
New SSH connections have updated environment variables (#509) 2022-02-04 09:58:11 -08:00
bagajjal 0d88c342a5
Spin up ssh-sk-helper in user context when called from ssh-agent (#560) 2022-02-01 18:46:19 -08:00
pedro martelletto f82b197a3e
bump LibreSSL to 3.4.2.0 and fetch libfido2 from developers.yubico.com (#556) 2022-01-28 14:41:23 -08:00
Tess Gauthier 1fa768f365
detect add-type edge case with powershell 7 (#554) 2022-01-21 11:33:53 -08:00
Tess Gauthier 692384a494
Build script: VS2019 & VS2017 build tools (#550) 2022-01-10 11:41:47 -08:00
pedro martelletto 4cd1fd1dc0
Enable support for FIDO2/U2F security keys (#541) 2021-12-17 18:30:25 -08:00
Tess Gauthier 991465e079
merge vs2019 and telemetry build script changes (#545) 2021-12-08 16:27:49 -08:00
Heath Stewart d476258f99
Initial MSI authoring for Previews (#521) 2021-12-06 12:33:24 -08:00
Tess Gauthier 1d40f24cf8
add connection status from sshd and remote protocol version to telemetry (#539) 2021-11-30 10:52:53 -08:00
Tess Gauthier 45f2b0e099
modify build helper script to fix failing arm builds (#536) 2021-11-03 15:16:28 -07:00
Tess Gauthier 2bbcffac6e
Cleanup L3 Compiler Warnings (#538) 2021-11-02 16:41:35 -07:00
pedro martelletto 942e993fac
propagate error if get_sid() fails (#520) 2021-10-28 13:28:58 -07:00
Damien Miller a5ab488234 remove built-in support for md5crypt()
Users of MD5-hashed password should arrange for ./configure to link
against libxcrypt or similar. Though it would be better to avoid use
of MD5 password hashing entirely, it's arguably worse than DEScrypt.

feedback and ok dtucker@
2021-10-28 16:16:13 +11:00
Tess Gauthier 5cb3267167
fix typo in telemetry description (#534) 2021-10-19 10:12:50 -07:00
Tess Gauthier 904470d9a9
Telemetry (#529) 2021-10-11 14:46:32 -07:00
Damien Miller 8acaff41f7 update version numbers for release 2021-09-26 22:16:36 +10:00
Tess Gauthier e3ec55a47e
add files with test pws to credscan suppression (#528)
* add files with test pws to credscan suppression

* update justification
2021-09-21 11:51:53 -07:00
Darren Tucker d83ec9ed99 Remove obsolete Redhat PAM config and init script. 2021-08-20 15:39:05 +10:00
Damien Miller 5450606c8f update version numbers 2021-08-20 13:59:43 +10:00
vthiebaut10 0b73c4636d
Allow non-admin user processes to log message to ETW / log file (#513) 2021-06-11 16:56:04 -07:00
vthiebaut10 75835a2462
Copy LICENCE to bin folder (#514) 2021-05-26 15:19:48 -07:00
bagajjal 4d2ea7f2f2 fix the error message when user tries to login with just domain name 2021-05-12 14:09:30 -07:00
bagajjal 1abee49b13 remove unnecessary logs 2021-05-12 11:18:10 -07:00
bagajjal de3b30217c crank OpenSSH v8.6 2021-05-07 16:34:30 -07:00
bagajjal 085c1d232e Change zlib version from 2.1.11 to 1.2.11 2021-05-07 10:35:27 -07:00
bagajjal 48aee09043
update to Libressl V3.3.3.0 (#508) 2021-05-07 10:12:57 -07:00
Oldřich Jedlička 62ea86fdbe
Rework username same as hostname (#469) 2021-05-06 15:20:35 -07:00
bagajjal 59a96cfee4
Update _PATH_TTY to point to the console (#506) 2021-05-04 13:18:06 -07:00
Melby Ruarus 747d7ee66c
Updates the Win32 error translation table to translate ERROR_NOT_SUPPORTED to EOPNOTSUPP. (#440) 2021-05-03 12:45:19 -07:00
Semicolon 5e5ed64743
user permission fix to include ecdsa and ed25519 (#446)
Co-authored-by: Michael Trigg <mtrigg@crabel.com>
2021-05-03 12:40:10 -07:00
bagajjal 279abce5ef Add appveyor debug logs 2021-04-29 17:09:46 -07:00
bagajjal 88c5e11dbd Merge branch 'latestw_all' of https://github.com/PowerShell/openssh-portable into bagajjal/pull_v8_6 2021-04-29 12:51:13 -07:00
bagajjal 9dba3f91e4
Bagajjal/compile test v8.6 (#503)
Fixed compilation and test failures with V8.6.
2021-04-29 12:41:08 -07:00
vthiebaut10 83927cbe02
sftp-server running on windows writes incoming file from linux client… (#502) 2021-04-28 14:56:51 -07:00
bagajjal 9230781e2e Merge upstream V8_6 2021-04-21 11:30:22 -07:00
vthiebaut10 904ffd36d4
Use moduli file under openssh-portable root folder (#499) 2021-04-19 10:27:24 -07:00
Damien Miller 2fb25ca11e crank version in README and RPM spec files 2021-04-16 13:53:02 +10:00
Damien Miller d5d6b7d76d perform report_failed_grab() inline 2021-04-10 18:45:00 +10:00
Damien Miller ea996ce2d0 dedicated gnome-ssk-askpass3 source
Compatibility with Wayland requires that we use the gdk_seat_grab()
API for grabbing mouse/keyboard, however these API don't exist in
Gtk+2.

This branches gnome-ssk-askpass2.c => gnome-ssk-askpass3.c and
makes the changes to use the gdk_seat_grab() instead of grabbing
mouse/focus separately via GDK.

In the future, we can also use the branched file to avoid some
API that has been soft-deprecated in GTK+3, e.g. gtk_widget_modify_fg
2021-04-10 18:22:57 +10:00
Damien Miller 57ed647ee0 polish whitespace for portable files 2021-04-03 17:47:37 +11:00
Balu Gajjala e2287c5cfa openssh-8.5
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEcWi5g4FaXu9ZpK39Kj9BTnNgYLoFAmA+KckACgkQKj9BTnNg
 YLoCExAAqxi83JFNUj+D0HdfM/eKas8dGtCXFzxtOA0yomKeeDUVoz1D96CdNLF8
 07mL78KAMErN2SfXEyzpS/2yoGa8wPflne/ADWJVIGKZK9cj8/fwvMrCUWp9PJOa
 CVQm2W8u3yBoEAxoi81S7WJjR5BY4Sv0LtQJW43VfD4bwYjBz8N72ecnr7LknFNL
 qJXYUu/OWtMLNsSrh2VigXJQgTA9cmJUrItRFamSsfWZGwilL0MpXLrkwcJa5DhO
 25PG3aeJSTX5txI/hl25EY5cyeJPQGX+6Nz9kJag50a7C9ZOCJHIbnle7dFcLsDP
 lCy3VoQnPxEOHe8kmNGLf1tGvv8AIqpJu1a31SlSnbqHEgHFC0XCPXZF0QWDGAaO
 kDt8j6XSCHYDyml5+nkZJBCP6xcx7eXyLJ2CxnNZBabbRGLb/Rj+jeCk9s+jWo/i
 UDgmlibbfjreYVgwuZhQV9QI9GB0Mlv+UjeeK55b2S7WnhuLsMLVrxDVQ1Zl4oR1
 ckOvXBMGrjMaLQTW9Q1xSV6C3PR1oAbVa09YUP0KSAthOu8L/tGY13kT4DwWm1W/
 JBOKzCk/JIfRuOpCrKSftwuj19JKOPYojW8kk10i/48RUq4TiCsCnTtBZI7VvFcB
 B28s/ZGRq/nETqHSRX63/WLr57lU54pq/+7THQA5iUyFhORPYk4=
 =npgJ
 -----END PGP SIGNATURE-----

pull V8.5 changes
2021-04-02 10:14:32 -07:00
bagajjal 5bcc5aa4d0
remove setting the console title (#494) 2021-03-31 11:43:49 -07:00
vthiebaut10 794bf53f49
Check if Powershell is running in admin mode before running script (#493) 2021-03-30 14:01:43 -07:00
vthiebaut10 bbb500a639
FixUserFilePermissions fixes permissions for administrators_authorized_keys (#492) 2021-03-29 17:19:37 -07:00
Damien Miller 71241fc05d gnome-ssh-askpass3 is a valid target here 2021-03-29 15:14:25 +11:00
Brian Katyl 78b646b0de
Adds support for system account lookup (#478) 2021-03-26 17:13:19 -07:00
Brian Katyl 6e76ad9e1e
Add support for AuthorizedKeysCommand and AuthorizedPrincipalsCommand to run as System (#479) 2021-03-26 17:12:55 -07:00
vthiebaut10 9a60244ef6
Increase verbosity level for bad file permission (#489) 2021-03-26 17:12:13 -07:00
bagajjal 54824dd72e
Administrator non en-us OS. (#488) 2021-03-25 14:25:42 -07:00
bagajjal 2539e60536
fix HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH registry permissions (#484) 2021-03-22 19:17:33 -07:00
bagajjal bc7adf5a84
Allow users to configure custom shell arguments (#480) 2021-03-03 18:05:25 -08:00
Damien Miller 67a8bb7fe6 update RPM spec version numbers 2021-03-02 21:29:54 +11:00
Philip Hands 476ac8e9d3 tidy the $INSTALLKEY_SH code layout a little
SSH-Copy-ID-Upstream: 78178aa5017222773e4c23d9001391eeaeca8983
2021-02-26 01:06:15 +11:00
Jakub Jelen 983e05ef3b if unable to add a missing newline, fail
SSH-Copy-ID-Upstream: 76b25e18f55499ea9edb4c4d6dc4a80bebc36d95
2021-02-26 01:06:15 +11:00
Philip Hands 3594b3b015 use $AUTH_KEY_DIR, now that we have it
since that was a change made since jjelen's commit was written

also, quote the variables

SSH-Copy-ID-Upstream: 588cd8e5cbf95f3443d92b9ab27c5d73ceaf6616
2021-02-26 01:06:15 +11:00
Jakub Jelen 333e25f7bc restorecon the correct directory
if using different path for authorized_keys file

SSH-Copy-ID-Upstream: 791a3df47b48412c726bff6f7b1d190721e65d51
2021-02-26 01:06:15 +11:00
Philip Hands e545d94b71 shift contents of long $() into filter_ids()
This was prompted by the fact that posh does not deal with $()
that contains comments where the comment includes an odd number
of single-quotes. It seems to get befuddled into trying to find
the matching quote.
Regardless, making a function for filtering the unneeded ids
seems much neater than avoiding apostrophes,
so that's what I've done.

SSH-Copy-ID-Upstream: 3dab3366a584427045c8a690a93282f02c09cf24
2020-10-13 12:45:05 +11:00
Philip Hands fd36017459 combine if/elif to avoid duplication of the action
SSH-Copy-ID-Upstream: 42aeb1cc53d3f7f6e78edc210fb121fda0834914
2020-10-13 12:45:05 +11:00
Philip Hands f7c3a39b01 shellcheck tidyage
SSH-Copy-ID-Upstream: 5b08f840e78ac544288b3983010a1b0585e966fd
2020-10-13 12:45:05 +11:00
Philip Hands 108676c3f2 tidy up test of $SCRATCH_DIR creation
SSH-Copy-ID-Upstream: 2d8b22d96c105d87743ffe8874887b06f8989b93
2020-10-13 12:44:38 +11:00
Philip Hands a9c9e91a82 add -s flag: to install keys via SFTP
This is prompted by:

 https://bugzilla.mindrot.org/show_bug.cgi?id=3201

Thanks go to Matthias Blümel for the idea, and the helpful patch, from
which this patch grew.

SSH-Copy-ID-Upstream: f7c76dc64427cd20287a6868f672423b62057614
2020-10-13 11:52:47 +11:00
Philip Hands ce941c75ea un-nest $() to make ksh cheerful 2020-10-03 09:26:00 +10:00
Philip Hands 18ea5f4b88 ksh doesn't grok 'local'
and AFAICT it's not actually doing anything useful in the code, so let's
see how things go without it.
2020-10-03 09:25:32 +10:00
Oleg d9e727dcc0 Fix `EOF: command not found` error in ssh-copy-id 2020-10-03 09:20:55 +10:00
Damien Miller 279261e1ea update version numbers 2020-09-27 17:25:01 +10:00
Damien Miller 9bb8a303ce sync with upstream ssh-copy-id rev f0da1a1b7 2020-09-22 10:07:43 +10:00
Damien Miller f93b187ab9 control over the colours in gnome-ssh-askpass[23]
Optionally set the textarea colours via $GNOME_SSH_ASKPASS_FG_COLOR and
$GNOME_SSH_ASKPASS_BG_COLOR. These accept the usual three or six digit
hex colours.
2020-09-18 14:55:48 +10:00
Damien Miller 9d3d36bdb1 focus improvement for gnome-ssh-askpass[23]
When serving a SSH_ASKPASS_PROMPT=none information dialog, ensure
then <enter> doesn't immediately close the dialog. Instead, require an
explicit <tab> to reach the close button, or <esc>.
2020-09-18 14:50:38 +10:00
Damien Miller 3ec9a6d731 Add ssh-sk-helper and manpage to RPM spec file
Based on patch from Fabio Pedretti
2020-07-20 13:09:25 +10:00
Damien Miller 58ad004acd prepare for 8.3 release 2020-05-12 12:58:46 +10:00
Scott Bennett 8ab565c53f
Prevent duplicated login message (#426) 2020-04-02 14:34:30 -07:00
Bryan Berns 106db2baac
Make w32_rename() Atomic For Files (#438) 2020-04-02 10:17:27 -07:00
bagajjal 901f123915
conExitRawMode() - set in_raw_mode to 0 2020-04-01 22:02:28 -07:00
Scott Bennett a228c2fbaa
Reset console after exiting raw mode (#425) 2020-04-01 21:59:19 -07:00
bagajjal f4498b7c5b
Update docker file and build helper (#436) 2020-03-17 22:23:04 -07:00
bagajjal be6a7c80d8
Upgrade to LibreSSL 3.0.2 version. (#435) 2020-03-17 12:51:40 -07:00
bagajjal ffae274ab0
Add Moduli file support (#434) 2020-03-17 10:46:28 -07:00
bagajjal 0516e2d619
Fix cursor scroll issue for downlevel OS (#430) 2020-03-16 16:27:57 -07:00
Damien Miller def31bc542 spelling mistakes
from https://fossies.org/linux/misc/openssh-8.2p1.tar.gz/codespell.html
2020-03-13 14:23:07 +11:00
bagajjal 6b1af6abaa
Fix to pipe shell commands. (#429)
Fix to pipe shell commands.
Fix random test failures
2020-02-28 18:06:18 +00:00
Nico Kadel-Garcia b2491c289d Switch %define to %global for redhat/openssh.spec 2020-02-22 11:48:05 +11:00
Damien Miller 72f0ce33f0 crank version numbers 2020-02-12 09:28:35 +11:00
Darren Tucker 69e44ba701 Fix typo: 'you' -> 'your'.
bz#3108 from jmckitrick@gmail.com.
2020-01-06 09:02:53 +11:00
bagajjal ee11c8e15e update to libressl 2.9.2.1 2019-12-17 23:36:53 -08:00
bagajjal 0bd3eb973b
remove CREATE_NO_WINDOW
Interactive sftp is broken.
2019-12-17 17:00:49 -08:00
bagajjal 6f21746aed
Long file name arm64 platform (#422) 2019-12-17 14:14:59 -08:00
bagajjal ac41232677
Match user force command (pty) (#421) 2019-12-17 14:11:40 -08:00
Bryan Berns 2c2ac97333 Add Long File Name Support (#400) 2019-12-17 12:40:36 -08:00
Oldřich Jedlička 2736cb7b0c Resolve local user name same as machine name to <user_name aka machine_name>\<user_name aka machine_name> 2019-12-16 16:44:07 -08:00
Bryan Berns 7dd58ed31f Allow Use Of Non-ASCII Character In SSH Client Passwords (#322)
* Allow Use Of Non-ASCII Character In SSH Client Passwords
2019-12-12 14:33:05 -08:00
bugale 17c9c6dbb3 Using the Y viewport for setting cursor correctly (#368)
[shellhost] - fix cursor position, Y viewport.
2019-12-12 14:32:17 -08:00
sasdf 1b9b599f60 Change /dev/null to NUL (#403)
1) Change /dev/null to NUL.
2) Add logic to check for NULL_DEVICE_WIN in fileio.c and misc.c
2019-12-12 14:30:11 -08:00
bagajjal 9fcbc0c1a5
Code cleanup & minor fixes (#415)
* remove AddPasswordSetting(), override the build output zip file if exists
2019-12-12 14:24:35 -08:00
bagajjal a49bdce666
Port Unix bash tests (#410)
Leverage upstream test infrastructure to run against windows openssh binaries.
2019-12-09 15:12:46 -08:00
bagajjal 9b327de3e7
While spawning sshd process, use DETACHED_PROCESS flag 2019-12-09 11:51:24 -08:00
Bryan Berns 25588ffb7a Potential Bug When First Character In Path Is Unicode (#398)
Fix is_absolute_path() to ignore non-ASCII values.
2019-12-09 11:31:22 -08:00
bagajjal 8cf6003bac
CreateProcess with CREATE_NO_WINDOW flag (#413)
* createProcess() should spawn a new process with an invisible console window.
2019-12-09 10:54:18 -08:00
bagajjal 34608f3d29
Read VTSequence from console (#412)
Use console win32 API to read the VTSequence for keystrokes on client-side.
2019-12-05 13:20:04 -08:00
bagajjal 9e42eb0c76
Update logic to identify console conpty support (#411)
conpty identity logic.
2019-12-02 10:57:03 -08:00
Damien Miller b497e920b4 Teach the GTK2/3 ssh-askpass the new prompt hints
ssh/ssh-agent now sets a hint environment variable $SSH_ASKPASS_PROMPT
when running the askpass program. This is intended to allow the
askpass to vary its UI across the three cases it supports: asking for
a passphrase, confirming the use of a key and (recently) reminding
a user to touch their security key.

This adapts the gnome-ssh-askpass[23] to use these hints. Specifically,
for SSH_ASKPASS_PROMPT=confirm it will skip the text input box and show
only "yes"/"no" buttons. For SSH_ASKPASS_PROMPT=none (used to remind
users to tap their security key), it shows only a "close" button.

Help wanted: adapt the other askpass programs in active use, including
x11-ssh-askpass, lxqt-openssh-askpass, etc.
2019-11-18 15:22:40 +11:00
Ed Schaller a4ea7dcced Fix comparison between wchar and ptr (#401) 2019-11-15 22:49:38 -08:00
Manoj Ampalam 7ae6defce8
Added support for AuthorizedKeysCommand and AuthorizedPrincipalsCommand (#409) 2019-11-15 10:51:45 -08:00
Manoj Ampalam 754f7b4885 Ported v8.1 changes 2019-11-01 12:20:04 -07:00
Manoj Ampalam 66b040a11e Merge branch 'V_8_1' of https://github.com/openssh/openssh-portable into latestw_all 2019-11-01 11:55:19 -07:00
bagajjal 32976d0d7e fix onecore build issues (#402) 2019-11-01 11:11:24 -07:00
bagajjal 762b888b89 Added config option to target a specific version of LibreSSL (#405)
Version of LibreSSL to link to, now needs to be explicitly declared in paths.targets
2019-11-01 11:10:33 -07:00
bagajjal 0d93457a2e Added compression support vai Zlib (#404) 2019-11-01 10:57:34 -07:00
Manoj Ampalam aaf11e2149
Fixed various unhandled failure paths in Kerb GSS/SSPI adapter (#393) 2019-10-10 11:42:28 -07:00
Damien Miller cdf1d0a9f5 prepare for 8.1 release 2019-10-09 11:31:03 +11:00
Manoj Ampalam d9773976a7
fix testbreak with SSH_ASKPASS change (#394)
Added askpass utility to support change around SSH_ASKPASS logic. Since prompt is now passed as a commandline parameter to SSH_ASKPASS, "cmd /c echo" based logic no longer works for automated passing of password.
2019-09-13 14:13:42 -07:00
Manoj Ampalam 9cc51aa7e4
Fixed issue around incorrect handling of Handle and CredHandle types in Kerb GSS/SSPI adapter code
Prior logic was using a common variable to encapsulate both these types and doing a runtime check based on GetTokenInformation call to determine the actual underlying type. These two types are not guaranteed to have different values and any conflict could result in a random crash that would be nearly impossible to debug.
2019-09-10 14:38:16 -07:00
Bryan Berns 8346fc0d43 Correct Unicode Path Handling (#388)
Adjusted realpath() to use _wfullpath() to handle cases where paths may contain unicode characters.
Addresses PowerShell/Win32-OpenSSH#1401.
2019-07-16 11:42:02 -07:00
Bryan Berns b68e74d05c Address GSSAPI Crash When Non-Domain User Is Specified (#385)
Updated gss_release_cred() to test if passed structure is actually a logon token and, if so, release the data properly.
Addresses PowerShell/Win32-OpenSSH#1405
2019-06-27 11:00:57 -07:00
Manoj Ampalam 1137942918
Refactored pester based E2E test setup (#384)
- Set up dedicated test endpoint instead of tweaking main service configuration.
- Got rid of redundant custom test configuration files.
- Cleaned up pester tests directory. Moved test filed to dedicated directory
- Revised TestDaemon start/stop routines to use "netstat" for host process identification. This gets rid of slight flakiness in previous approach.
2019-06-17 22:46:33 -07:00
Bryan Berns 3d35b912a7 Updated Permissions Check For SidHistory (#375)
- Updated check_secure_file_permission() to perform a reverse lookups on the trustee SID within the file security descriptor to account for multiple SIDs that actually point to the same user.
- Updated permissions message to display the resolved SID to help with end user debugging.

Addresses: PowerShell/Win32-OpenSSH#1342
2019-06-10 12:30:11 -07:00
Sorin Adrian Savu 2459df9aa1 openssl-devel is obsoleted by libssl-devel
openssl-devel is no longer installable via the cygwin setup and
it's hidden by default, so you can't see the replacement very easy.
2019-06-05 15:04:57 +10:00
Manoj Ampalam 7ed284f878
Ported v8.0 changes 2019-05-24 23:08:06 -07:00
Manoj Ampalam 7079aed39c Merge branch 'V_8_0' of https://github.com/openssh/openssh-portable 2019-05-22 14:18:23 -07:00
bugale c9c6da0bee Added keystroke mapping Shift+Tab in shellhost (#367) 2019-05-21 14:03:53 -07:00