mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
BoringSSL: Add DPP special cases regardless of claimed version number
It looks like BoringSSL claims to have OPENSSL_VERSION_NUMBER for a 1.1.0 version, but it does not provide ECDSA_SIG_set0() or ECDSA_SIG_get0(). For now, add the helper functions regardless of the version BoringSSL claims to be. Similarly, include the X509_ALGOR_get0() workaround unconditionally for BoringSSL. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f29761297b
commit
5548453a2d
@ -30,7 +30,7 @@
|
|||||||
enum dpp_test_behavior dpp_test = DPP_TEST_DISABLED;
|
enum dpp_test_behavior dpp_test = DPP_TEST_DISABLED;
|
||||||
#endif /* CONFIG_TESTING_OPTIONS */
|
#endif /* CONFIG_TESTING_OPTIONS */
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(OPENSSL_IS_BORINGSSL)
|
||||||
/* Compatibility wrappers for older versions. */
|
/* Compatibility wrappers for older versions. */
|
||||||
|
|
||||||
static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
|
static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
|
||||||
@ -764,7 +764,7 @@ static int dpp_parse_uri_pk(struct dpp_bootstrap_info *bi, const char *info)
|
|||||||
const unsigned char *pk;
|
const unsigned char *pk;
|
||||||
int ppklen;
|
int ppklen;
|
||||||
X509_ALGOR *pa;
|
X509_ALGOR *pa;
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(OPENSSL_IS_BORINGSSL)
|
||||||
ASN1_OBJECT *pa_oid;
|
ASN1_OBJECT *pa_oid;
|
||||||
#else
|
#else
|
||||||
const ASN1_OBJECT *pa_oid;
|
const ASN1_OBJECT *pa_oid;
|
||||||
|
Loading…
Reference in New Issue
Block a user