Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0

*** 56,67 **** * [including the GNU Public Licence.] */ #include <stdio.h> #include <openssl/bn.h> ! #include "cryptlib.h" ! #include "bn_lcl.h" /* The old slow way */ #if 0 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, --- 56,67 ---- * [including the GNU Public Licence.] */ #include <stdio.h> #include <openssl/bn.h> ! #include <cryptlib.h> ! #include <bn_lcl.h> /* The old slow way */ #if 0 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
*** 141,151 **** * * <appro@fy.chalmers.se> */ #undef bn_div_words # define bn_div_words(n0,n1,d0) \ ! ({ asm volatile ( \ "divl %4" \ : "=a"(q), "=d"(rem) \ : "a"(n1), "d"(n0), "g"(d0) \ : "cc"); \ q; \ --- 141,151 ---- * * <appro@fy.chalmers.se> */ #undef bn_div_words # define bn_div_words(n0,n1,d0) \ ! ({ __asm volatile ( \ "divl %4" \ : "=a"(q), "=d"(rem) \ : "a"(n1), "d"(n0), "g"(d0) \ : "cc"); \ q; \
*** 156,166 **** * Same story here, but it's 128-bit by 64-bit division. Wow! * <appro@fy.chalmers.se> */ # undef bn_div_words # define bn_div_words(n0,n1,d0) \ ! ({ asm volatile ( \ "divq %4" \ : "=a"(q), "=d"(rem) \ : "a"(n1), "d"(n0), "g"(d0) \ : "cc"); \ q; \ --- 156,166 ---- * Same story here, but it's 128-bit by 64-bit division. Wow! * <appro@fy.chalmers.se> */ # undef bn_div_words # define bn_div_words(n0,n1,d0) \ ! ({ __asm volatile ( \ "divq %4" \ : "=a"(q), "=d"(rem) \ : "a"(n1), "d"(n0), "g"(d0) \ : "cc"); \ q; \