Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

SFTP failed with the error -41 working with Openssl

Abierto
#1,356 14 comentarios 0 reacciones 0 asignados Ver en GitHub

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

bug help wanted

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de libssh2/libssh2

Todos los issues de libssh2/libssh2

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.