mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 00:34:33 +02:00
fix compilation with openssl built without ECC
ECDSA code in openssh-compat.h and libressl-api-compat.c needs to be guarded by OPENSSL_HAS_ECC Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
This commit is contained in:
parent
1801cd11d9
commit
624d19ac2d
@ -152,7 +152,9 @@
|
|||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/rsa.h>
|
#include <openssl/rsa.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
#ifdef OPENSSL_HAS_ECC
|
||||||
#include <openssl/ecdsa.h>
|
#include <openssl/ecdsa.h>
|
||||||
|
#endif
|
||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
|
|
||||||
#ifndef HAVE_DSA_GET0_PQG
|
#ifndef HAVE_DSA_GET0_PQG
|
||||||
@ -417,6 +419,7 @@ DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s)
|
|||||||
}
|
}
|
||||||
#endif /* HAVE_DSA_SIG_SET0 */
|
#endif /* HAVE_DSA_SIG_SET0 */
|
||||||
|
|
||||||
|
#ifdef OPENSSL_HAS_ECC
|
||||||
#ifndef HAVE_ECDSA_SIG_GET0
|
#ifndef HAVE_ECDSA_SIG_GET0
|
||||||
void
|
void
|
||||||
ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
|
ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
|
||||||
@ -442,6 +445,7 @@ ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_ECDSA_SIG_SET0 */
|
#endif /* HAVE_ECDSA_SIG_SET0 */
|
||||||
|
#endif /* OPENSSL_HAS_ECC */
|
||||||
|
|
||||||
#ifndef HAVE_DH_GET0_PQG
|
#ifndef HAVE_DH_GET0_PQG
|
||||||
void
|
void
|
||||||
|
@ -25,7 +25,9 @@
|
|||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/rsa.h>
|
#include <openssl/rsa.h>
|
||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
|
#ifdef OPENSSL_HAS_ECC
|
||||||
#include <openssl/ecdsa.h>
|
#include <openssl/ecdsa.h>
|
||||||
|
#endif
|
||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
|
|
||||||
int ssh_compatible_openssl(long, long);
|
int ssh_compatible_openssl(long, long);
|
||||||
@ -174,6 +176,7 @@ void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);
|
|||||||
int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);
|
int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);
|
||||||
#endif /* DSA_SIG_SET0 */
|
#endif /* DSA_SIG_SET0 */
|
||||||
|
|
||||||
|
#ifdef OPENSSL_HAS_ECC
|
||||||
#ifndef HAVE_ECDSA_SIG_GET0
|
#ifndef HAVE_ECDSA_SIG_GET0
|
||||||
void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);
|
void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);
|
||||||
#endif /* HAVE_ECDSA_SIG_GET0 */
|
#endif /* HAVE_ECDSA_SIG_GET0 */
|
||||||
@ -181,6 +184,7 @@ void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);
|
|||||||
#ifndef HAVE_ECDSA_SIG_SET0
|
#ifndef HAVE_ECDSA_SIG_SET0
|
||||||
int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);
|
int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);
|
||||||
#endif /* HAVE_ECDSA_SIG_SET0 */
|
#endif /* HAVE_ECDSA_SIG_SET0 */
|
||||||
|
#endif /* OPENSSL_HAS_ECC */
|
||||||
|
|
||||||
#ifndef HAVE_DH_GET0_PQG
|
#ifndef HAVE_DH_GET0_PQG
|
||||||
void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,
|
void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user