Skip to content

Commit 4504842

Browse files
Merge pull request #277 from ejohnstown/release-1.4.5
Release 1.4.5
2 parents 8c719f5 + 132a0a5 commit 4504842

5 files changed

Lines changed: 44 additions & 5 deletions

File tree

ChangeLog.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# wolfSSH v1.4.5 (August 31, 2020)
2+
3+
## New Feature Additions
4+
5+
- Added SSH-AGENT support to the echoserver and client
6+
- For testing purposes, add ability to have named users with authentication
7+
type of "none"
8+
- Added support for building for EWARM
9+
- Echoserver can now spawn a shell and set up a pty with it
10+
- Added example to the SCP callback for file transfers without a filesystem
11+
12+
## Fixes
13+
14+
- Fixes for clean connection shutdown in the example.
15+
- Fixes for some issues with DH KEX discovered with fuzz testing
16+
- Fix for an OOB read around the RSA signature
17+
- Fix for building with wolfSSL v4.5.0 with respect to `wc_ecc_set_rng()`;
18+
configure will detect the function's presence and work around it absence;
19+
see note in internal.c regarding the flag `HAVE_WC_ECC_SET_RNG` if not
20+
using configure
21+
22+
## Improvements and Optimizations
23+
24+
- Improved interoperability with winSCP
25+
- Improved interoperability with Dropbear
26+
- Example client can now authenticate with public keys
27+
28+
29+
--------------------------------
30+
131
# wolfSSH v1.4.4 (04/28/2020)
232

333
## New Feature Additions

README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ To use public key authentication use the command line:
9191

9292
Where the *USER* can be `gretel` or `hansel`, and *TYPE* is `rsa` or `ecc`.
9393

94+
Keep in mind, the echoserver has several fake accounts in its wsUserAuth
95+
callback function. (jack, jill, hansel, and gretel) When the shell support is
96+
enabled, those fake accounts will not work. They don't exist in the system's
97+
passwd file. The users will authenticate, but the server will err out because
98+
they don't exist in the system. You can add your own username to the password
99+
or public key list in the echoserver. That account will be logged into a shell
100+
started by the echoserver with the privileges of the user running echoserver.
101+
94102

95103
scp support
96104
-----------

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AC_ARG_PROGRAM
1717
AC_CONFIG_MACRO_DIR([m4])
1818
AC_CONFIG_HEADERS([src/config.h])
1919

20-
WOLFSSH_LIBRARY_VERSION=11:0:2
20+
WOLFSSH_LIBRARY_VERSION=12:0:3
2121
# | | |
2222
# +------+ | +---+
2323
# | | |

examples/echoserver/echoserver.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,20 +588,20 @@ static int shell_worker(thread_ctx_t* threadCtx)
588588
memset((void *)&buf_rx, 0, sizeof(buf_rx));
589589
memset((void *)&buf_tx, 0, sizeof(buf_tx));
590590

591-
buf_rx.buf = malloc(SE_BUF_SIZE);
591+
buf_rx.buf = (char*)malloc(SE_BUF_SIZE);
592592
if (buf_rx.buf == NULL) {
593593
return WS_FATAL_ERROR;
594594
}
595595

596-
buf_tx.buf = malloc(SE_BUF_SIZE);
596+
buf_tx.buf = (char*)malloc(SE_BUF_SIZE);
597597
if (buf_tx.buf == NULL) {
598598
free(buf_rx.buf);
599599
return WS_FATAL_ERROR;
600600
}
601601

602602
#ifdef WOLFSSH_AGENT
603603
memset((void *)&agent_buf, 0, sizeof(agent_buf));
604-
agent_buf.buf = malloc(SE_BUF_SIZE);
604+
agent_buf.buf = (char*)malloc(SE_BUF_SIZE);
605605
if (agent_buf.buf == NULL) {
606606
free(buf_rx.buf);
607607
free(buf_tx.buf);

src/wolfscp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,8 @@ int ScpPushDir(ScpSendCtx* ctx, const char* path, void* heap)
20582058
}
20592059

20602060
/* append directory name to ctx->dirName */
2061-
WSTRNCPY(ctx->dirName, path, DEFAULT_SCP_FILE_NAME_SZ);
2061+
WSTRNCPY(ctx->dirName, path, DEFAULT_SCP_FILE_NAME_SZ-1);
2062+
ctx->dirName[DEFAULT_SCP_FILE_NAME_SZ-1] = '\0';
20622063

20632064
return WS_SUCCESS;
20642065
}

0 commit comments

Comments
 (0)