Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

MD5 fingerprint not available by default in libssh2 HEAD, test fails

Aperta
#100 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
c, php
Ambito
backend, security

Direzione di ricerca

Start with the libssh2 RELEASE-NOTES and related issue 2161 to understand how MD5 availability is exposed, then reproduce the failure in tests/ssh2_connect.phpt against libssh2 HEAD. Trace the ssh2_fingerprint() behavior used by that test. Done means the extension and test handle the unavailable MD5 fingerprint without the current failure while preserving supported behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

libssh2 > 1.11.1 (current HEAD) introduces new build time defines that control, which crypto algorithms are enabled. Most of the optional ones will be disabled by default. See https://raw.githubusercontent.com/libssh2/libssh2/refs/heads/master/RELEASE-NOTES.

The ssh2 extension provides and uses the MD5 fingerprint functionality unconditionally. This will fail for the next libssh2 release, eg. in the unit test tests/ssh2_connect.phpt:

---- EXPECTED OUTPUT
**Connect
bool(true)
string(12) "SSH2 Session"
**Fingerprint MD5
bool(true)
int(32)
bool(true)
...
---- ACTUAL OUTPUT
**Connect
bool(true)
string(12) "SSH2 Session"
**Fingerprint MD5

Warning: ssh2_fingerprint(): Unable to retrieve fingerprint from specified session in /path/to/tests/ssh2_connect.php on line 9
bool(false)
int(0)

Deprecated: ctype_xdigit(): Argument of type bool will be interpreted as string in the future in /path/to/tests/ssh2_connect.php on line 12
bool(false)

I think there is currently no nice way to detect MD5 availability in libssh2. I opened https://github.com/libssh2/libssh2/issues/2161 there.

Lingua principale
C
Stelle
55
Fork
67
Merge medio
3h 8m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di php/pecl-networking-ssh2

Tutte le issue di php/pecl-networking-ssh2

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.