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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/openssl/libsunw_crypto/evp/e_aes_cbc_hmac_sha1.c
          +++ new/usr/src/lib/openssl/libsunw_crypto/evp/e_aes_cbc_hmac_sha1.c
↓ open down ↓ 83 lines elided ↑ open up ↑
  84   84      } EVP_AES_HMAC_SHA1;
  85   85  
  86   86  #define NO_PAYLOAD_LENGTH       ((size_t)-1)
  87   87  
  88   88  #if     defined(AES_ASM) &&     ( \
  89   89          defined(__x86_64)       || defined(__x86_64__)  || \
  90   90          defined(_M_AMD64)       || defined(_M_X64)      || \
  91   91          defined(__INTEL__)      )
  92   92  
  93   93  #if defined(__GNUC__) && __GNUC__>=2 && !defined(PEDANTIC)
  94      -# define BSWAP(x) ({ unsigned int r=(x); asm ("bswapl %0":"=r"(r):"0"(r)); r; })
       94 +# define BSWAP(x) ({ unsigned int r=(x); __asm__ ("bswapl %0":"=r"(r):"0"(r)); r; })
  95   95  #endif
  96   96  
  97   97  extern unsigned int OPENSSL_ia32cap_P[2];
  98   98  #define AESNI_CAPABLE   (1<<(57-32))
  99   99  
 100  100  int aesni_set_encrypt_key(const unsigned char *userKey, int bits,
 101  101                                AES_KEY *key);
 102  102  int aesni_set_decrypt_key(const unsigned char *userKey, int bits,
 103  103                                AES_KEY *key);
 104  104  
↓ open down ↓ 477 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX