← Commit list

3c7d136225

Viktor Szakats
Viktor Szakats
2026-06-05
SUCCESS Duration: 229s

Subject

libssh2: use non-deprecated `libssh2_knownhost_addc()`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vssh/libssh2.c+7 -6
@@ -427,12 +427,13 @@ static CURLcode ssh_knownhost(struct Curl_easy *data,
if(keycheck != LIBSSH2_KNOWNHOST_CHECK_MATCH) {
/* the found host+key did not match but has been told to be fine
anyway so we add it in memory */
- int addrc = libssh2_knownhost_add(sshc->kh,
- conn->origin->hostname, NULL,
- remotekey, keylen,
- LIBSSH2_KNOWNHOST_TYPE_PLAIN|
- LIBSSH2_KNOWNHOST_KEYENC_RAW|
- keybit, NULL);
+ int addrc = libssh2_knownhost_addc(sshc->kh,
+ conn->origin->hostname, NULL,
+ remotekey, keylen,
+ NULL, 0,
+ LIBSSH2_KNOWNHOST_TYPE_PLAIN |
+ LIBSSH2_KNOWNHOST_KEYENC_RAW |
+ keybit, NULL);
if(addrc)
infof(data, "WARNING: adding the known host %s failed",
conn->origin->hostname);