Merge pull request #374 from JacobBarthelmeh/release

pull/345/head
John Safranek 2021-11-04 13:39:39 -07:00 committed by GitHub
commit bb6e6e2ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
54 changed files with 151 additions and 122 deletions

View File

@ -1,3 +1,23 @@
# wolfSSH v1.4.8 (Nov 4, 2021)
## New Feature Additions and Improvements
- Add remote port forwarding
- Make loading user created keys into the examples easier
- Add --with-wolfssl and use --prefix to look for wolfSSL
- Updated the unsupported GlobalReq response
## Fixes
- Fix for RSA public key auth
- When decoding SFTP messages, fix the size checks so they don't wrap
- Fix an issue where the testsuite and echoserver a socket failure
- SFTP fix for getting attribute header
- Fix for possible null dereference in SendKexDhReply
- Remove reference to udp from test.h
- Fixes to local port forwarding
# wolfSSH v1.4.7 (July 23, 2021)
## New Feature Additions and Improvements

View File

@ -3,7 +3,7 @@
# All right reserved.
AC_COPYRIGHT([Copyright (C) 2014-2020 wolfSSL Inc.])
AC_INIT([wolfssh],[1.4.7],[support@wolfssl.com],[wolfssh],[https://www.wolfssl.com])
AC_INIT([wolfssh],[1.4.8],[support@wolfssl.com],[wolfssh],[https://www.wolfssl.com])
AC_PREREQ([2.63])
AC_CONFIG_AUX_DIR([build-aux])
@ -18,7 +18,7 @@ AC_ARG_PROGRAM
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([src/config.h])
WOLFSSH_LIBRARY_VERSION=12:2:3
WOLFSSH_LIBRARY_VERSION=12:3:3
# | | |
# +------+ | +---+
# | | |

View File

@ -1,6 +1,6 @@
/* client.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* client.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* echoserver.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
@ -606,7 +606,7 @@ static int ssh_worker(thread_ctx_t* threadCtx)
#ifdef WOLFSSH_SHELL
const char *userName;
struct passwd *p_passwd;
WS_SOCKET_T childFd;
WS_SOCKET_T childFd = 0;
pid_t childPid;
#endif
#if defined(WOLFSSL_PTHREADS) && defined(WOLFSSL_TEST_GLOBAL_REQ)

View File

@ -1,6 +1,6 @@
/* echoserver.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* portfwd.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* wolfssh_portfwd.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* scpclient.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* scpclient.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* server.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* server.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* sftpclient.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
@ -689,7 +689,7 @@ static int doCmds(func_args* args)
continue;
}
if ((pt = WSTRNSTR(msg, "reget", MAX_CMD_SZ)) != NULL) {
if (WSTRNSTR(msg, "reget", MAX_CMD_SZ) != NULL) {
resume = 1;
}
@ -782,7 +782,7 @@ static int doCmds(func_args* args)
}
if ((pt = WSTRNSTR(msg, "reput", MAX_CMD_SZ)) != NULL) {
if (WSTRNSTR(msg, "reput", MAX_CMD_SZ) != NULL) {
resume = 1;
}
@ -1175,7 +1175,7 @@ static int doCmds(func_args* args)
}
if ((pt = WSTRNSTR(msg, "ls", MAX_CMD_SZ)) != NULL) {
if (WSTRNSTR(msg, "ls", MAX_CMD_SZ) != NULL) {
WS_SFTPNAME* tmp;
WS_SFTPNAME* current;
@ -1201,7 +1201,7 @@ static int doCmds(func_args* args)
}
/* display current working directory */
if ((pt = WSTRNSTR(msg, "pwd", MAX_CMD_SZ)) != NULL) {
if (WSTRNSTR(msg, "pwd", MAX_CMD_SZ) != NULL) {
if (SFTP_FPUTS(args, workingDir) < 0 ||
SFTP_FPUTS(args, "\n") < 0) {
err_msg("fputs error");

View File

@ -1,6 +1,6 @@
/* sftpclient.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* dummy_filesystem.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,22 +1,21 @@
/* strings.h
*
* Copyright (C) 2006-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSL.
* This file is part of wolfSSH.
*
* wolfSSL is free software; you can redistribute it and/or modify
* wolfSSH is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* wolfSSH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
* along with wolfSSH. If not, see <http://www.gnu.org/licenses/>.
*/
int strncasecmp(const char *s1, const char * s2, unsigned int sz);

View File

@ -1,22 +1,21 @@
/* unistd.h
*
* Copyright (C) 2006-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSL.
* This file is part of wolfSSH.
*
* wolfSSL is free software; you can redistribute it and/or modify
* wolfSSH is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* wolfSSH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
* along with wolfSSH. If not, see <http://www.gnu.org/licenses/>.
*/
/* DUMMY Header */

View File

@ -1,22 +1,21 @@
/* user_settings.h
*
* Copyright (C) 2006-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSL.
* This file is part of wolfSSH.
*
* wolfSSL is free software; you can redistribute it and/or modify
* wolfSSH is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* wolfSSH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
* along with wolfSSH. If not, see <http://www.gnu.org/licenses/>.
*/
#define WOLFCRYPT_ONLY
#define NO_ERROR_STRINGS

View File

@ -1,22 +1,21 @@
/* wolfssh_csplus_usersettings..h
*
* Copyright (C) 2006-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSL.
* This file is part of wolfSSH.
*
* wolfSSL is free software; you can redistribute it and/or modify
* wolfSSH is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* wolfSSH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
* along with wolfSSH. If not, see <http://www.gnu.org/licenses/>.
*/
#define RENESAS_CSPLUS

View File

@ -1,6 +1,6 @@
/* wolfssh_demo.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* wolfssh_demo.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* wolfssh_dummy.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* agent.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* internal.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
@ -768,7 +768,8 @@ int wolfSSH_ProcessBuffer(WOLFSSH_CTX* ctx,
}
if (type == BUFTYPE_PRIVKEY && format != WOLFSSH_FORMAT_RAW) {
key_ptr = WMALLOC(sizeof(union wolfSSH_key), heap, dynamicType);
key_ptr = (union wolfSSH_key*)WMALLOC(sizeof(union wolfSSH_key), heap,
dynamicType);
if (key_ptr == NULL) {
WFREE(der, heap, dynamicType);
return WS_MEMORY_E;
@ -3115,14 +3116,17 @@ static int DoKexDhReply(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
}
if (ret == WS_SUCCESS) {
sigKeyBlock_ptr = WMALLOC(sizeof(struct wolfSSH_sigKeyBlock), ssh->ctx->heap, DYNTYPE_PRIVKEY);
sigKeyBlock_ptr = (struct wolfSSH_sigKeyBlock*)WMALLOC(
sizeof(struct wolfSSH_sigKeyBlock), ssh->ctx->heap,
DYNTYPE_PRIVKEY);
if (sigKeyBlock_ptr == NULL) {
ret = WS_MEMORY_E;
}
#ifdef WOLFSSH_SMALL_STACK
#ifndef WOLFSSH_NO_ECDSA
key_ptr = WMALLOC(sizeof(ecc_key), ssh->ctx->heap, DYNTYPE_PRIVKEY);
key_ptr = (ecc_key*)WMALLOC(sizeof(ecc_key), ssh->ctx->heap,
DYNTYPE_PRIVKEY);
if (key_ptr == NULL) {
ret = WS_MEMORY_E;
}
@ -4061,14 +4065,15 @@ static int DoUserAuthRequestRsa(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
if (ret == WS_SUCCESS) {
#ifdef WOLFSSH_SMALL_STACK
checkDigest = WMALLOC(MAX_ENCODED_SIG_SZ, ssh->ctx->heap,
checkDigest = (byte*)WMALLOC(MAX_ENCODED_SIG_SZ, ssh->ctx->heap,
DYNTYPE_BUFFER);
if (checkDigest == NULL)
ret = WS_MEMORY_E;
#else
checkDigest = s_checkDigest;
#endif
key_ptr = WMALLOC(sizeof(RsaKey), ssh->ctx->heap, DYNTYPE_PUBKEY);
key_ptr = (RsaKey*)WMALLOC(sizeof(RsaKey), ssh->ctx->heap,
DYNTYPE_PUBKEY);
if (key_ptr == NULL)
ret = WS_MEMORY_E;
}
@ -4154,7 +4159,8 @@ static int DoUserAuthRequestRsa(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
volatile int compare;
volatile int sizeCompare;
#ifdef WOLFSSH_SMALL_STACK
encDigest = WMALLOC(MAX_ENCODED_SIG_SZ, ssh->ctx->heap, DYNTYPE_BUFFER);
encDigest = (byte*)WMALLOC(MAX_ENCODED_SIG_SZ, ssh->ctx->heap,
DYNTYPE_BUFFER);
if (encDigest == NULL)
ret = WS_MEMORY_E;
#else
@ -4222,9 +4228,10 @@ static int DoUserAuthRequestEcc(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
if (ret == WS_SUCCESS) {
#ifdef WOLFSSH_SMALL_STACK
key_ptr = WMALLOC(sizeof(ecc_key), ssh->ctx->heap, DYNTYPE_PUBKEY);
sig_r_ptr = WMALLOC(sizeof(mp_int), ssh->ctx->heap, DYNTYPE_MPINT);
sig_s_ptr = WMALLOC(sizeof(mp_int), ssh->ctx->heap, DYNTYPE_MPINT);
key_ptr = (ecc_key*)WMALLOC(sizeof(ecc_key), ssh->ctx->heap,
DYNTYPE_PUBKEY);
sig_r_ptr = (mp_int*)WMALLOC(sizeof(mp_int), ssh->ctx->heap, DYNTYPE_MPINT);
sig_s_ptr = (mp_int*)WMALLOC(sizeof(mp_int), ssh->ctx->heap, DYNTYPE_MPINT);
if (key_ptr == NULL || sig_r_ptr == NULL || sig_s_ptr == NULL)
ret = WS_MEMORY_E;
#else
@ -6806,6 +6813,7 @@ struct wolfSSH_sigKeyBlockFull {
int SendKexDhReply(WOLFSSH* ssh)
{
int ret = WS_SUCCESS;
void *heap = NULL;
byte *f_ptr = NULL, *sig_ptr = NULL;
#ifndef WOLFSSH_NO_ECDH
byte *r_ptr = NULL, *s_ptr = NULL;
@ -6831,12 +6839,7 @@ int SendKexDhReply(WOLFSSH* ssh)
word32 generatorSz = 0;
#endif
struct wolfSSH_sigKeyBlockFull *sigKeyBlock_ptr = NULL;
#ifdef WOLFSSH_SMALL_STACK
f_ptr = WMALLOC(KEX_F_SIZE, ssh->ctx->heap, DYNTYPE_BUFFER);
sig_ptr = WMALLOC(KEX_SIG_SIZE, ssh->ctx->heap, DYNTYPE_BUFFER);
if (f_ptr == NULL || sig_ptr == NULL)
ret = WS_MEMORY_E;
#else
#ifndef WOLFSSH_SMALL_STACK
byte f_s[KEX_F_SIZE];
byte sig_s[KEX_SIG_SIZE];
@ -6846,13 +6849,24 @@ int SendKexDhReply(WOLFSSH* ssh)
WLOG(WS_LOG_DEBUG, "Entering SendKexDhReply()");
if (ret == WS_SUCCESS) {
if (ssh == NULL || ssh->handshake == NULL) {
if (ssh == NULL || ssh->ctx == NULL || ssh->handshake == NULL) {
ret = WS_BAD_ARGUMENT;
}
}
sigKeyBlock_ptr = WMALLOC(sizeof(struct wolfSSH_sigKeyBlockFull),
ssh->ctx->heap, DYNTYPE_PRIVKEY);
if (ret == WS_SUCCESS) {
heap = ssh->ctx->heap;
}
#ifdef WOLFSSH_SMALL_STACK
f_ptr = (byte*)WMALLOC(KEX_F_SIZE, heap, DYNTYPE_BUFFER);
sig_ptr = (byte*)WMALLOC(KEX_SIG_SIZE, heap, DYNTYPE_BUFFER);
if (f_ptr == NULL || sig_ptr == NULL)
ret = WS_MEMORY_E;
#endif
sigKeyBlock_ptr = (struct wolfSSH_sigKeyBlockFull*)WMALLOC(
sizeof(struct wolfSSH_sigKeyBlockFull), heap, DYNTYPE_PRIVKEY);
if (sigKeyBlock_ptr == NULL)
ret = WS_MEMORY_E;
@ -6926,7 +6940,7 @@ int SendKexDhReply(WOLFSSH* ssh)
/* Decode the user-configured RSA private key. */
sigKeyBlock_ptr->sk.rsa.eSz = sizeof(sigKeyBlock_ptr->sk.rsa.e);
sigKeyBlock_ptr->sk.rsa.nSz = sizeof(sigKeyBlock_ptr->sk.rsa.n);
ret = wc_InitRsaKey(&sigKeyBlock_ptr->sk.rsa.key, ssh->ctx->heap);
ret = wc_InitRsaKey(&sigKeyBlock_ptr->sk.rsa.key, heap);
if (ret == 0)
ret = wc_RsaPrivateKeyDecode(ssh->ctx->privateKey, &scratch,
&sigKeyBlock_ptr->sk.rsa.key,
@ -7032,8 +7046,8 @@ int SendKexDhReply(WOLFSSH* ssh)
/* Decode the user-configured ECDSA private key. */
sigKeyBlock_ptr->sk.ecc.qSz = sizeof(sigKeyBlock_ptr->sk.ecc.q);
ret = wc_ecc_init_ex(&sigKeyBlock_ptr->sk.ecc.key, ssh->ctx->heap,
INVALID_DEVID);
ret = wc_ecc_init_ex(&sigKeyBlock_ptr->sk.ecc.key, heap,
INVALID_DEVID);
scratch = 0;
if (ret == 0)
ret = wc_EccPrivateKeyDecode(ssh->ctx->privateKey, &scratch,
@ -7201,7 +7215,7 @@ int SendKexDhReply(WOLFSSH* ssh)
DhKey privKey;
word32 ySz = MAX_KEX_KEY_SZ;
#ifdef WOLFSSH_SMALL_STACK
y_ptr = WMALLOC(ySz, ssh->ctx->heap, DYNTYPE_PRIVKEY);
y_ptr = (byte*)WMALLOC(ySz, heap, DYNTYPE_PRIVKEY);
if (y_ptr == NULL)
ret = WS_MEMORY_E;
#else
@ -7235,11 +7249,9 @@ int SendKexDhReply(WOLFSSH* ssh)
ret = WS_INVALID_PRIME_CURVE;
if (ret == 0)
ret = wc_ecc_init_ex(&pubKey, ssh->ctx->heap,
INVALID_DEVID);
ret = wc_ecc_init_ex(&pubKey, heap, INVALID_DEVID);
if (ret == 0)
ret = wc_ecc_init_ex(&privKey, ssh->ctx->heap,
INVALID_DEVID);
ret = wc_ecc_init_ex(&privKey, heap, INVALID_DEVID);
#ifdef HAVE_WC_ECC_SET_RNG
if (ret == 0)
ret = wc_ecc_set_rng(&privKey, ssh->rng);
@ -7383,8 +7395,8 @@ int SendKexDhReply(WOLFSSH* ssh)
byte rPad;
byte sPad;
#ifdef WOLFSSH_SMALL_STACK
r_ptr = WMALLOC(rSz, ssh->ctx->heap, DYNTYPE_BUFFER);
s_ptr = WMALLOC(sSz, ssh->ctx->heap, DYNTYPE_BUFFER);
r_ptr = (byte*)WMALLOC(rSz, heap, DYNTYPE_BUFFER);
s_ptr = (byte*)WMALLOC(sSz, heap, DYNTYPE_BUFFER);
if (r_ptr == NULL || r_ptr == NULL)
ret = WS_MEMORY_E;
#else
@ -7524,20 +7536,20 @@ int SendKexDhReply(WOLFSSH* ssh)
WLOG(WS_LOG_DEBUG, "Leaving SendKexDhReply(), ret = %d", ret);
if (sigKeyBlock_ptr)
WFREE(sigKeyBlock_ptr, ssh->ctx->heap, DYNTYPE_PRIVKEY);
WFREE(sigKeyBlock_ptr, heap, DYNTYPE_PRIVKEY);
#ifdef WOLFSSH_SMALL_STACK
if (f_ptr)
WFREE(f_ptr, ssh->ctx->heap, DYNTYPE_BUFFER);
WFREE(f_ptr, heap, DYNTYPE_BUFFER);
if (sig_ptr)
WFREE(sig_ptr, ssh->ctx->heap, DYNTYPE_BUFFER);
WFREE(sig_ptr, heap, DYNTYPE_BUFFER);
#ifndef WOLFSSH_NO_DH
if (y_ptr)
WFREE(r_ptr, ssh->ctx->heap, DYNTYPE_PRIVKEY);
WFREE(y_ptr, heap, DYNTYPE_PRIVKEY);
#endif
if (r_ptr)
WFREE(r_ptr, ssh->ctx->heap, DYNTYPE_BUFFER);
WFREE(r_ptr, heap, DYNTYPE_BUFFER);
if (s_ptr)
WFREE(s_ptr, ssh->ctx->heap, DYNTYPE_BUFFER);
WFREE(s_ptr, heap, DYNTYPE_BUFFER);
#endif
return ret;
}
@ -8783,7 +8795,7 @@ int SendUserAuthRequest(WOLFSSH* ssh, byte authId, int addSig)
ret = WS_BAD_ARGUMENT;
if (ret == WS_SUCCESS) {
keySig_ptr = WMALLOC(sizeof(WS_KeySignature),
keySig_ptr = (WS_KeySignature*)WMALLOC(sizeof(WS_KeySignature),
ssh->ctx->heap, DYNTYPE_BUFFER);
if (!keySig_ptr)
ret = WS_MEMORY_E;

View File

@ -1,6 +1,6 @@
/* io.c
*
* Copyright (C) 2014-2016 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* keygen.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* log.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* misc.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* port.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* ssh.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
@ -1482,7 +1482,8 @@ int wolfSSH_ReadKey_buffer(const byte* in, word32 inSz, int format,
word32 scratch = 0;
union wolfSSH_key *key_ptr = NULL;
key_ptr = WMALLOC(sizeof(union wolfSSH_key), heap, DYNTYPE_PRIVKEY);
key_ptr = (union wolfSSH_key*)WMALLOC(sizeof(union wolfSSH_key), heap,
DYNTYPE_PRIVKEY);
if (key_ptr == NULL) {
return WS_MEMORY_E;
}

View File

@ -1,6 +1,6 @@
/* wolfscp.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* wolfsftp.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
@ -3800,7 +3800,7 @@ int wolfSSH_SFTP_RecvRemove(WOLFSSH* ssh, int reqId, byte* data, word32 maxSz)
if (ret == WS_SUCCESS) {
#ifndef USE_WINDOWS_API
if ((ret = WREMOVE(ssh->fs, name)) < 0)
if (WREMOVE(ssh->fs, name) < 0)
#else /* USE_WINDOWS_API */
if (WS_DeleteFileA(name, ssh->ctx->heap) == 0)
#endif /* USE_WINDOWS_API */

View File

@ -1,6 +1,6 @@
/* wolfterm.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* api.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* sftp.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* testsuite.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* testsuite.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* unit.c
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* agent.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* certs_test.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* error.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* internal.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* keygen.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* log.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* misc.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* port.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* settings.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* ssh.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* test.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* version.h.in
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*
@ -35,8 +35,8 @@
extern "C" {
#endif
#define LIBWOLFSSH_VERSION_STRING "1.4.7"
#define LIBWOLFSSH_VERSION_HEX 0x01004007
#define LIBWOLFSSH_VERSION_STRING "1.4.8"
#define LIBWOLFSSH_VERSION_HEX 0x01004008
#ifdef __cplusplus
}

View File

@ -1,6 +1,6 @@
/* version.h.in
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* visibility.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* wolfscp.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*

View File

@ -1,6 +1,6 @@
/* wolfsftp.h
*
* Copyright (C) 2014-2020 wolfSSL Inc.
* Copyright (C) 2014-2021 wolfSSL Inc.
*
* This file is part of wolfSSH.
*