MD5 fingerprint not available by default in libssh2 HEAD, test fails
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di php/pecl-networking-ssh2
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
php/pecl-networking-ssh2#98 · 2 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
php/pecl-networking-ssh2#77 · 2 commenti ·
Tutte le issue di php/pecl-networking-ssh2
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
FujiNetWIFI/fujinet-firmware#2045 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OpenPrinting/cups#1772 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
snowballstem/snowball#311 ·
-
tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno