From 5169432e399dcb309eda458df0e2c44e5c2707d9 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Fri, 19 Feb 2021 15:01:27 +0100 Subject: [PATCH] Removed options for NO_SCP_TIMESTAMP, NO_SCP_ENTER_DIRECTORY --- keys/hansel-key-ecc.pem | 0 src/wolfscp.c | 8 -------- 2 files changed, 8 deletions(-) mode change 100644 => 100755 keys/hansel-key-ecc.pem diff --git a/keys/hansel-key-ecc.pem b/keys/hansel-key-ecc.pem old mode 100644 new mode 100755 diff --git a/src/wolfscp.c b/src/wolfscp.c index 2785395..c49a48a 100644 --- a/src/wolfscp.c +++ b/src/wolfscp.c @@ -236,7 +236,6 @@ static int ScpSourceInit(WOLFSSH* ssh) } -#ifndef NO_SCP_TIMESTAMP /* Sends timestamp information (access, modification) to peer. * * T 0 0 @@ -273,7 +272,6 @@ static int SendScpTimestamp(WOLFSSH* ssh) return ret; } -#endif @@ -314,7 +312,6 @@ static int SendScpFileHeader(WOLFSSH* ssh) return ret; } -#ifndef NO_SCP_ENTER_DIRECTORY /* Sends directory message to peer, length is ignored but must * be present in message format (set to 0). * @@ -347,7 +344,6 @@ static int SendScpEnterDirectory(WOLFSSH* ssh) return ret; } -#endif /* Sends end directory message to peer. * @@ -519,7 +515,6 @@ int DoScpSource(WOLFSSH* ssh) continue; -#ifndef NO_SCP_TIMESTAMP case SCP_SEND_TIMESTAMP: WLOG(WS_LOG_DEBUG, scpState, "SCP_SEND_TIMESTAMP"); @@ -531,9 +526,7 @@ int DoScpSource(WOLFSSH* ssh) ssh->scpState = SCP_RECEIVE_CONFIRMATION; ssh->scpNextState = SCP_SEND_FILE_HEADER; continue; -#endif -#ifndef NO_SCP_ENTER_DIRECTORY case SCP_SEND_ENTER_DIRECTORY: WLOG(WS_LOG_DEBUG, scpState, "SCP_SEND_ENTER_DIRECTORY"); @@ -545,7 +538,6 @@ int DoScpSource(WOLFSSH* ssh) ssh->scpState = SCP_RECEIVE_CONFIRMATION; ssh->scpNextState = SCP_TRANSFER; continue; -#endif case SCP_SEND_EXIT_DIRECTORY: WLOG(WS_LOG_DEBUG, scpState, "SCP_SEND_EXIT_DIRECTORY");