Merge pull request #100 from JacobBarthelmeh/testing

add default SCP state of no direction set
pull/102/head
Chris Conlon 2018-09-11 15:10:14 -06:00 committed by GitHub
commit 9c9def769b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -449,6 +449,7 @@ WOLFSSH* SshInit(WOLFSSH* ssh, WOLFSSH_CTX* ctx)
ssh->scpMTime = 0;
ssh->scpRequestType = WOLFSSH_SCP_SINGLE_FILE_REQUEST;
ssh->scpIsRecursive = 0;
ssh->scpDirection = WOLFSSH_SCP_DIR_NONE;
#endif
#ifdef WOLFSSH_SFTP

View File

@ -640,7 +640,8 @@ enum WS_ScpMsgTypes {
};
enum WS_ScpDirection {
WOLFSSH_SCP_TO = 0,
WOLFSSH_SCP_DIR_NONE = 0,
WOLFSSH_SCP_TO,
WOLFSSH_SCP_FROM
};