Giter VIP home page Giter VIP logo

giannitedesco / ccid-utils Goto Github PK

View Code? Open in Web Editor NEW
72.0 9.0 26.0 387 KB

A USB smartcard driver including GSM SIM and EMV credit/debit card development platforms

Home Page: http://www.scaramanga.co.uk/ccid-utils/

License: GNU General Public License v3.0

Shell 0.04% C 84.77% Python 14.69% Makefile 0.50%
ccid emv usb smartcard payment-cards payment-card sim-card chip-and-pin visa mastercard

ccid-utils's Issues

make failed - incomplete typedef RSA

The subject of the issue entry is pretty self-explanatory. Here's what I did (including the errors)

Steps I used to get to the issue:
sh ./autogen.sh
./configure
make

Relevant section of output from make:

mv -f .deps/emv_data.Tpo .deps/emv_data.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -pipe -I/usr/include/libusb-1.0 -MT emv_sda.lo -MD -MP -MF .deps/emv_sda.Tpo -c -o emv_sda.lo emv_sda.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -pipe -I/usr/include/libusb-1.0 -MT emv_sda.lo -MD -MP -MF .deps/emv_sda.Tpo -c emv_sda.c -fPIC -DPIC -o .libs/emv_sda.o

emv_sda.c: In function ‘get_ca_key’:
emv_sda.c:91:12: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
91 | key->n = BN_bin2bn(modulus, mod_len, NULL);
| ^~
emv_sda.c:92:25: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
92 | if ( NULL == key->n )
| ^~
emv_sda.c:95:12: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
95 | key->e = BN_bin2bn(exponent, exp_len, NULL);
| ^~
emv_sda.c:96:25: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
96 | if ( NULL == key->e )
| ^~
emv_sda.c:103:20: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
103 | BN_free(key->n);
| ^~

emv_sda.c: In function ‘make_issuer_pk’:
emv_sda.c:204:12: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
204 | key->n = BN_bin2bn(tmp, req->pk_cert_len, NULL);
| ^~
emv_sda.c:205:12: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
205 | key->e = BN_bin2bn(req->pk_exp, req->pk_exp_len, NULL);
| ^~
emv_sda.c:207:25: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
207 | if ( NULL == key->n || NULL == key->e ) {
| ^~
emv_sda.c:207:43: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
207 | if ( NULL == key->n || NULL == key->e ) {
| ^~
make[1]: *** [Makefile:669: emv_sda.lo] Error 1
make[1]: Leaving directory '/home/stakfallt/GitHub/emv/ccid-utils/src'
make: *** [Makefile:453: all-recursive] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.