mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 08:44:52 +02:00
Fix compilation error in ssh-pcks11-client.c
Compilation fails becaus of an undefined reference to helper_by_ec, because we forgot the preprocessor conditional that excludes that function from being called in unsupported configurations.
This commit is contained in:
parent
219c813415
commit
6b8be2ccd7
@ -457,6 +457,7 @@ pkcs11_make_cert(const struct sshkey *priv,
|
|||||||
RSA_set_method(ret->rsa, helper->rsa_meth);
|
RSA_set_method(ret->rsa, helper->rsa_meth);
|
||||||
if (helper->nrsa++ >= INT_MAX)
|
if (helper->nrsa++ >= INT_MAX)
|
||||||
fatal_f("RSA refcount error");
|
fatal_f("RSA refcount error");
|
||||||
|
#if defined(OPENSSL_HAS_ECC) && defined(HAVE_EC_KEY_METHOD_NEW)
|
||||||
} else if (priv->type == KEY_ECDSA) {
|
} else if (priv->type == KEY_ECDSA) {
|
||||||
if ((helper = helper_by_ec(priv->ecdsa)) == NULL ||
|
if ((helper = helper_by_ec(priv->ecdsa)) == NULL ||
|
||||||
helper->fd == -1)
|
helper->fd == -1)
|
||||||
@ -466,6 +467,7 @@ pkcs11_make_cert(const struct sshkey *priv,
|
|||||||
EC_KEY_set_method(ret->ecdsa, helper->ec_meth);
|
EC_KEY_set_method(ret->ecdsa, helper->ec_meth);
|
||||||
if (helper->nec++ >= INT_MAX)
|
if (helper->nec++ >= INT_MAX)
|
||||||
fatal_f("EC refcount error");
|
fatal_f("EC refcount error");
|
||||||
|
#endif
|
||||||
} else
|
} else
|
||||||
fatal_f("unknown key type %s", sshkey_type(priv));
|
fatal_f("unknown key type %s", sshkey_type(priv));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user