Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 158f4ba

Browse files
committed
Ensure repo is update to date with upstream.
1 parent fdb60f6 commit 158f4ba

10 files changed

Lines changed: 6 additions & 338 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,6 @@ install(
110110
)
111111
endif (UNIX)
112112

113-
if (LIBSSH_THREADS)
114-
configure_file(libssh_threads.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh_threads.pc)
115-
install(
116-
FILES
117-
${CMAKE_CURRENT_BINARY_DIR}/libssh_threads.pc
118-
DESTINATION
119-
${LIB_INSTALL_DIR}/pkgconfig
120-
COMPONENT
121-
pkgconfig
122-
)
123-
endif (LIBSSH_THREADS)
124-
endif (CMAKE_GENERATOR MATCHES "Makefiles")
125-
126113
# cmake config files
127114
set(LIBSSH_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}ssh${CMAKE_SHARED_LIBRARY_SUFFIX})
128115

include/libssh/socket.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p, socket_t fd, int r
6464
struct ssh_poll_handle_struct * ssh_socket_get_poll_handle_in(ssh_socket s);
6565
struct ssh_poll_handle_struct * ssh_socket_get_poll_handle_out(ssh_socket s);
6666

67-
void ssh_socket_set_connecting(ssh_socket s, socket_t fd);
6867
int ssh_socket_connect(ssh_socket s, const char *host, int port, const char *bind_addr);
6968

7069
#endif /* SOCKET_H_ */

src/buffer.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -674,24 +674,6 @@ int ssh_buffer_validate_length(struct ssh_buffer_struct *buffer, size_t len)
674674
return SSH_OK;
675675
}
676676

677-
/**
678-
* @brief Valdiates that the given length can be obtained from the buffer.
679-
*
680-
* @param[in] buffer The buffer to read from.
681-
*
682-
* @param[in] len The length to be checked.
683-
*
684-
* @return SSH_OK if the length is valid, SSH_ERROR otherwise.
685-
*/
686-
int ssh_buffer_validate_length(struct ssh_buffer_struct *buffer, size_t len)
687-
{
688-
if (buffer->pos + len < len || buffer->pos + len > buffer->used) {
689-
return SSH_ERROR;
690-
}
691-
692-
return SSH_OK;
693-
}
694-
695677
/**
696678
* @internal
697679
*

src/channels.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -938,11 +938,6 @@ int ssh_channel_open_forward(ssh_channel channel, const char *remotehost,
938938
return rc;
939939
}
940940

941-
if(remotehost == NULL || sourcehost == NULL) {
942-
ssh_set_error_invalid(session);
943-
return rc;
944-
}
945-
946941
payload = ssh_buffer_new();
947942
if (payload == NULL) {
948943
ssh_set_error_oom(session);

src/curve25519_ref.c

Lines changed: 0 additions & 272 deletions
This file was deleted.

src/dh.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,6 @@ static int generate_one_key(ssh_string k,
836836
int ssh_generate_session_keys(ssh_session session) {
837837
ssh_string k_string = NULL;
838838
struct ssh_crypto_struct *crypto = session->next_crypto;
839-
unsigned char *tmp;
840839
int rc = -1;
841840

842841
k_string = ssh_make_bignum_string(crypto->k);

src/packet_crypt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ unsigned char *ssh_packet_encrypt(ssh_session session, void *data, uint32_t len)
131131

132132
assert(len);
133133

134-
assert(len);
135-
136134
if (!session->current_crypto) {
137135
return NULL; /* nothing to do here */
138136
}

0 commit comments

Comments
 (0)