HomeFreeBSD

MFH: r482120 r482122

Description

MFH: r482120 r482122

devel/android-tools-adb: unbreak with OpenSSL 1.1

adb/../libcrypto_utils/android_pubkey.c:84:10: error: incomplete definition of type 'struct rsa_st'

new_key->n = BN_bin2bn(modulus_buffer, sizeof(modulus_buffer), NULL);
~~~~~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:85:15: error: incomplete definition of type 'struct rsa_st'

if (!new_key->n) {
     ~~~~~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:90:10: error: incomplete definition of type 'struct rsa_st'

new_key->e = BN_new();
~~~~~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:91:15: error: incomplete definition of type 'struct rsa_st'

if (!new_key->e || !BN_set_word(new_key->e, key_struct->exponent)) {
     ~~~~~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:91:42: error: incomplete definition of type 'struct rsa_st'

if (!new_key->e || !BN_set_word(new_key->e, key_struct->exponent)) {
                                ~~~~~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:138:18: error: incomplete definition of type 'struct bignum_st'

BN_ULONG l = in->d[constant_time_select_ulong(
             ~~^

/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;

^

adb/../libcrypto_utils/android_pubkey.c:139:33: error: incomplete definition of type 'struct bignum_st'

constant_time_le_size_t(in->dmax, i), in->dmax - 1, i)];
                        ~~^

/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;

^

adb/../libcrypto_utils/android_pubkey.c:139:47: error: incomplete definition of type 'struct bignum_st'

constant_time_le_size_t(in->dmax, i), in->dmax - 1, i)];
                                      ~~^

/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;

^

adb/../libcrypto_utils/android_pubkey.c:142:63: error: incomplete definition of type 'struct bignum_st'

return constant_time_select_ulong(constant_time_le_size_t(in->top, i), 0, l);
                                                          ~~^

/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;

^

adb/../libcrypto_utils/android_pubkey.c:157:17: error: incomplete definition of type 'struct bignum_st'

if ((size_t)in->top > (len + (BN_BYTES - 1)) / BN_BYTES) {
            ~~^

/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;

^

adb/../libcrypto_utils/android_pubkey.c:210:25: error: incomplete definition of type 'struct rsa_st'

!BN_mod(n0inv, key->n, r32, ctx) ||
               ~~~^

/usr/include/openssl/bn.h:247:49: note: expanded from macro 'BN_mod'

  1. define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) ^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:217:40: error: incomplete definition of type 'struct rsa_st'

if (!android_pubkey_encode_bignum(key->n, key_struct->modulus)) {
                                  ~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:223:30: error: incomplete definition of type 'struct rsa_st'

!BN_mod_sqr(rr, rr, key->n, ctx) ||
                    ~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

adb/../libcrypto_utils/android_pubkey.c:229:51: error: incomplete definition of type 'struct rsa_st'

key_struct->exponent = (uint32_t)BN_get_word(key->e);
                                             ~~~^

/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;

^

Reported by: pkg-fallout
Approved by: ports-secteam blanket

Details

Provenance
jbeichAuthored on
Parents
rP482306: Introduce python Google Cloud Vision API to
Branches
Unknown
Tags
Unknown