SFTP failed with the error -41 working with Openssl
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- networking
Línea de trabajo
Start with openssl.c and _libssh2_cipher_crypt(), then trace how _libssh2_transport_read() uses packet_length. Check the Windows VS2013 build options and compare the reported runtime algorithm value with the expected AES-GCM detection. Done means explaining or correcting the mismatch so SFTP no longer returns LIBSSH2_ERROR_OUT_OF_BOUNDARY in the described setup.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have built libssh2-1.11.0 with Openssl3, the SFTP server is SSHD, the default algorithm is aes-256-gcm, the crypt method is "[email protected]".
In the _libssh2_cipher_crypt() function in openssl. c, the value of the "algo" parameter should be EVP_aes_256_gcm, so "is_aesgcm" should be 1, but in fact "algo" is not EVP_aes_256_gcm or EVP_aes_128_gcm, so "is_aesgcm" here is 0 and the decrypted data is incorrect, and the p->packet_length in _libssh2_transport_read() is a randomly large number and returns the error LIBSSH2_ERROR_OUT_OF_BOUNDARY.
I'm not sure why the function address of EVP_aes_256_gcm is different between compilation and runtime, when I call the "algo" function the return value seems to be correct, the nid is 901(NID_aes_256_gcm).
This only happens on Windows (VS2013).
Is this something to do with the build options?
- Lenguaje dominante
- C
- Estrellas
- 1.6k
- Forks
- 646
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de libssh2/libssh2
-
outdated tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
libssh2/libssh2#2679 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
libssh2/libssh2#2676 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
AEAD ciphers (chacha20-poly1305, AES-GCM) leak 16 bytes of uninitialized memory per outgoing encrypted packetPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertomemory-leak
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
libssh2/libssh2#2023 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
outdated
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
libssh2/libssh2#2678 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
libssh2/libssh2#2597 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de libssh2/libssh2
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
valkey-io/valkey#4979 · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
colbymchenry/codegraph#2770 ·
Los mantenedores suelen responder en 1 día
-
area/ysql kind/enhancement priority/medium status/awaiting-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
yugabyte/yugabyte-db#35578 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
test_announce_and_connect_via_dns binds a fixed port that other tests' nodes can be handedPosiblemente ocupada @ksedgwic la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ElementsProject/lightning#9642 ·
Los mantenedores suelen responder en 2 días