From: Douglas E E. <dee...@gm...> - 2016-04-19 19:20:37
|
P.S. Libp11 will also need changes as p11_key.c also tries to access the internals of the RSA structure. OpenSSL announced today: OpenSSL version 1.1.0 pre release 5 (beta) Building OpenSC-0.16.0 from git, with my https://github.com/OpenSC/OpenSC/pull/717 that compiled with the OpenSSL-1.1.0-pre4 now shows 117 errors 13 files. Between pre4 and pre5 OpenSSL has now hidden the internals of the RSA structure. One can no longer reference via a pointer the BIGNUM for n, e, d, r, q, dump1, dmq1 or iqmp. One must use these routines: int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp); void RSA_get0_key(const RSA *r, BIGNUM **n, BIGNUM **e, BIGNUM **d); void RSA_get0_factors(const RSA *r, BIGNUM **p, BIGNUM **q); void RSA_get0_crt_params(const RSA *r, BIGNUM **dmp1, BIGNUM **dmq1, BIGNUM **iqmp); void RSA_clear_flags(RSA *r, int flags); int RSA_test_flags(const RSA *r, int flags); void RSA_set_flags(RSA *r, int flags); I have started looking at the changes needed to PR #717 that will be needed. These are the routines that need to be modified: pkcs15init.c pkcs15-westcos.c pkcs15-prkey.c pkcs15-pubkey.c card-westcos.c cwa14890.c cwa-dnie.c piv-tool.c pkcs15-tool.c p15card-helper.c westcost-tool.c cryptoflex-tool.c pkcs15-tool.c -- Douglas E. Engert <DEE...@gm...> |