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/cast/c_enc.c
          +++ new/usr/src/lib/openssl/libsunw_crypto/cast/c_enc.c
↓ open down ↓ 49 lines elided ↑ open up ↑
  50   50   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  51   51   * SUCH DAMAGE.
  52   52   *
  53   53   * The licence and distribution terms for any publically available version or
  54   54   * derivative of this code cannot be changed.  i.e. this code cannot simply be
  55   55   * copied and put under another distribution licence
  56   56   * [including the GNU Public Licence.]
  57   57   */
  58   58  
  59   59  #include <openssl/cast.h>
  60      -#include "cast_lcl.h"
       60 +#include <cast_lcl.h>
  61   61  
  62   62  void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key)
  63   63          {
  64   64          register CAST_LONG l,r,t;
  65      -        const register CAST_LONG *k;
       65 +        register const CAST_LONG *k;
  66   66  
  67   67          k= &(key->data[0]);
  68   68          l=data[0];
  69   69          r=data[1];
  70   70  
  71   71          E_CAST( 0,k,l,r,+,^,-);
  72   72          E_CAST( 1,k,r,l,^,-,+);
  73   73          E_CAST( 2,k,l,r,-,+,^);
  74   74          E_CAST( 3,k,r,l,+,^,-);
  75   75          E_CAST( 4,k,l,r,^,-,+);
↓ open down ↓ 12 lines elided ↑ open up ↑
  88   88              E_CAST(15,k,r,l,+,^,-);
  89   89              }
  90   90  
  91   91          data[1]=l&0xffffffffL;
  92   92          data[0]=r&0xffffffffL;
  93   93          }
  94   94  
  95   95  void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key)
  96   96          {
  97   97          register CAST_LONG l,r,t;
  98      -        const register CAST_LONG *k;
       98 +        register const CAST_LONG *k;
  99   99  
 100  100          k= &(key->data[0]);
 101  101          l=data[0];
 102  102          r=data[1];
 103  103  
 104  104          if(!key->short_key)
 105  105              {
 106  106              E_CAST(15,k,l,r,+,^,-);
 107  107              E_CAST(14,k,r,l,-,+,^);
 108  108              E_CAST(13,k,l,r,^,-,+);
↓ open down ↓ 100 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX