eng_cryptodev.c:103:47: warning: declaration of 'struct crparam' will not be visible outside of this function [-Wvisibility]
static int bn2crparam(const BIGNUM *a, struct crparam *crp);
^
eng_cryptodev.c:104:30: warning: declaration of 'struct crparam' will not be visible outside of this function [-Wvisibility]
static int crparam2bn(struct crparam *crp, BIGNUM *a);
^
eng_cryptodev.c:105:30: warning: declaration of 'struct crypt_kop' will not be visible outside of this function [-Wvisibility]
static void zapparams(struct crypt_kop *kop);
^
eng_cryptodev.c:106:34: warning: declaration of 'struct crypt_kop' will not be visible outside of this function [-Wvisibility]
static int cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r,
^
eng_cryptodev.c:250:19: error: use of undeclared identifier 'CRIOGET'
if (ioctl(fd, CRIOGET, &retfd) == -1)
^
eng_cryptodev.c:1014:47: warning: declaration of 'struct crparam' will not be visible outside of this function [-Wvisibility]
static int bn2crparam(const BIGNUM *a, struct crparam *crp)
^
eng_cryptodev.c:1014:12: error: conflicting types for 'bn2crparam'
static int bn2crparam(const BIGNUM *a, struct crparam *crp)
^
eng_cryptodev.c:103:12: note: previous declaration is here
static int bn2crparam(const BIGNUM *a, struct crparam *crp);
^
eng_cryptodev.c:1020:8: error: incomplete definition of type 'struct crparam'
crp->crp_p = NULL;
~~~^
eng_cryptodev.c:1014:47: note: forward declaration of 'struct crparam'
static int bn2crparam(const BIGNUM *a, struct crparam *crp)
^
eng_cryptodev.c:1021:8: error: incomplete definition of type 'struct crparam'
crp->crp_nbits = 0;
~~~^
eng_cryptodev.c:1014:47: note: forward declaration of 'struct crparam'
static int bn2crparam(const BIGNUM *a, struct crparam *crp)
^
eng_cryptodev.c:1031:8: error: incomplete definition of type 'struct crparam'
crp->crp_p = (caddr_t) b;
~~~^
eng_cryptodev.c:1014:47: note: forward declaration of 'struct crparam'
static int bn2crparam(const BIGNUM *a, struct crparam *crp)
^
eng_cryptodev.c:1032:8: error: incomplete definition of type 'struct crparam'
crp->crp_nbits = bits;
~~~^
eng_cryptodev.c:1014:47: note: forward declaration of 'struct crparam'
static int bn2crparam(const BIGNUM *a, struct crparam *crp)
^
eng_cryptodev.c:1046:30: warning: declaration of 'struct crparam' will not be visible outside of this function [-Wvisibility]
static int crparam2bn(struct crparam *crp, BIGNUM *a)
^
eng_cryptodev.c:1046:12: error: conflicting types for 'crparam2bn'
static int crparam2bn(struct crparam *crp, BIGNUM *a)
^
eng_cryptodev.c:104:12: note: previous declaration is here
static int crparam2bn(struct crparam *crp, BIGNUM *a);
^
eng_cryptodev.c:1051:17: error: incomplete definition of type 'struct crparam'
bytes = (crp->crp_nbits + 7) / 8;
~~~^
eng_cryptodev.c:1046:30: note: forward declaration of 'struct crparam'
static int crparam2bn(struct crparam *crp, BIGNUM *a)
^
eng_cryptodev.c:1060:29: error: incomplete definition of type 'struct crparam'
pd = ((char *)crp->crp_p)[bytes - i - 1];
~~~^
eng_cryptodev.c:1046:30: note: forward declaration of 'struct crparam'
static int crparam2bn(struct crparam *crp, BIGNUM *a)
^
eng_cryptodev.c:1068:30: warning: declaration of 'struct crypt_kop' will not be visible outside of this function [-Wvisibility]
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:1068:13: error: conflicting types for 'zapparams'
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:105:13: note: previous declaration is here
static void zapparams(struct crypt_kop *kop);
^
eng_cryptodev.c:1072:24: error: incomplete definition of type 'struct crypt_kop'
for (i = 0; i < kop->crk_iparams + kop->crk_oparams; i++) {
~~~^
eng_cryptodev.c:1068:30: note: forward declaration of 'struct crypt_kop'
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:1072:43: error: incomplete definition of type 'struct crypt_kop'
for (i = 0; i < kop->crk_iparams + kop->crk_oparams; i++) {
~~~^
eng_cryptodev.c:1068:30: note: forward declaration of 'struct crypt_kop'
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:1073:25: error: incomplete definition of type 'struct crypt_kop'
OPENSSL_free(kop->crk_param.crp_p);
~~~^
../../include/openssl/crypto.h:390:46: note: expanded from macro 'OPENSSL_free'
define OPENSSL_free(addr) CRYPTO_free(addr)
^~~~
eng_cryptodev.c:1068:30: note: forward declaration of 'struct crypt_kop'
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:1074:12: error: incomplete definition of type 'struct crypt_kop'
kop->crk_param.crp_p = NULL;
~~~^
eng_cryptodev.c:1068:30: note: forward declaration of 'struct crypt_kop'
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:1075:12: error: incomplete definition of type 'struct crypt_kop'
kop->crk_param.crp_nbits = 0;
~~~^
eng_cryptodev.c:1068:30: note: forward declaration of 'struct crypt_kop'
static void zapparams(struct crypt_kop *kop)
^
eng_cryptodev.c:1080:23: warning: declaration of 'struct crypt_kop' will not be visible outside of this function [-Wvisibility]
cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, int slen,
^
eng_cryptodev.c:1080:1: error: conflicting types for 'cryptodev_asym'
cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, int slen,
^
eng_cryptodev.c:106:12: note: previous declaration is here
static int cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r,
^
eng_cryptodev.c:1089:12: error: incomplete definition of type 'struct crypt_kop'
kop->crk_param[kop->crk_iparams].crp_p = OPENSSL_malloc(rlen);
~~~^
eng_cryptodev.c:1080:23: note: forward declaration of 'struct crypt_kop'
cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, int slen,
^
eng_cryptodev.c:1089:27: error: incomplete definition of type 'struct crypt_kop'
kop->crk_param[kop->crk_iparams].crp_p = OPENSSL_malloc(rlen);
~~~^
eng_cryptodev.c:1080:23: note: forward declaration of 'struct crypt_kop'
cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, int slen,
^
eng_cryptodev.c:1090:16: error: incomplete definition of type 'struct crypt_kop'
if (kop->crk_param[kop->crk_iparams].crp_p == NULL)
~~~^
eng_cryptodev.c:1080:23: note: forward declaration of 'struct crypt_kop'
cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, int slen,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
*** Error code 1