}
break;
case C_HOSTPUBSHA256: /* --hostpubsha256 */
- err = getstr(&config->hostpubsha256, nextarg, DENY_BLANK);
+ if(!feature_libssh2)
+ err = PARAM_LIBCURL_DOESNT_SUPPORT;
+ else
+ err = getstr(&config->hostpubsha256, nextarg, DENY_BLANK);
break;
case C_CRLFILE: /* --crlfile */
err = getstr(&config->crlfile, nextarg, DENY_BLANK);
bool feature_http3 = FALSE;
bool feature_httpsproxy = FALSE;
bool feature_libz = FALSE;
+bool feature_libssh2 = FALSE;
bool feature_ntlm = FALSE;
bool feature_ntlm_wb = FALSE;
bool feature_spnego = FALSE;
++feature_count;
}
+ feature_libssh2 = curlinfo->libssh_version &&
+ !strncmp("libssh2", curlinfo->libssh_version, 7);
return CURLE_OK;
}
extern bool feature_http3;
extern bool feature_httpsproxy;
extern bool feature_libz;
+extern bool feature_libssh2;
extern bool feature_ntlm;
extern bool feature_ntlm_wb;
extern bool feature_spnego;