Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/crypto/io/md4_mod.c
          +++ new/usr/src/uts/common/crypto/io/md4_mod.c
↓ open down ↓ 52 lines elided ↑ open up ↑
  53   53   * Module linkage information for the kernel.
  54   54   */
  55   55  
  56   56  static struct modlcrypto modlcrypto = {
  57   57          &mod_cryptoops,
  58   58          "MD4 Kernel SW Provider"
  59   59  };
  60   60  
  61   61  static struct modlinkage modlinkage = {
  62   62          MODREV_1,
  63      -        (void *)&modlcrypto,
  64      -        NULL
       63 +        {   (void *)&modlcrypto,
       64 +            NULL }
  65   65  };
  66   66  
  67   67  /*
  68   68   * CSPI information (entry points, provider info, etc.)
  69   69   */
  70   70  
  71   71  typedef enum md4_mech_type {
  72   72          MD4_MECH_INFO_TYPE,             /* SUN_CKM_MD4 */
  73   73  } md4_mech_type_t;
  74   74  
↓ open down ↓ 45 lines elided ↑ open up ↑
 120  120  static crypto_digest_ops_t md4_digest_ops = {
 121  121          md4_digest_init,
 122  122          md4_digest,
 123  123          md4_digest_update,
 124  124          NULL,
 125  125          md4_digest_final,
 126  126          md4_digest_atomic
 127  127  };
 128  128  
 129  129  static crypto_ops_t md4_crypto_ops = {
 130      -        &md4_control_ops,
 131      -        &md4_digest_ops,
 132      -        NULL,
 133      -        NULL,
 134      -        NULL,
 135      -        NULL,
 136      -        NULL,
 137      -        NULL,
 138      -        NULL,
 139      -        NULL,
 140      -        NULL,
 141      -        NULL,
 142      -        NULL,
 143      -        NULL,
      130 +        .co_control_ops = &md4_control_ops,
      131 +        .co_digest_ops = &md4_digest_ops,
      132 +        .co_cipher_ops = NULL,
      133 +        .co_mac_ops = NULL,
      134 +        .co_sign_ops = NULL,
      135 +        .co_verify_ops = NULL,
      136 +        .co_dual_ops = NULL,
      137 +        .co_dual_cipher_mac_ops = NULL,
      138 +        .co_random_ops = NULL,
      139 +        .co_session_ops = NULL,
      140 +        .co_object_ops = NULL,
      141 +        .co_key_ops = NULL,
      142 +        .co_provider_ops = NULL,
      143 +        .co_ctx_ops = NULL
 144  144  };
 145  145  
 146      -static crypto_provider_info_t md4_prov_info = {
      146 +static crypto_provider_info_t md4_prov_info = {{{{
 147  147          CRYPTO_SPI_VERSION_1,
 148  148          "MD4 Software Provider",
 149  149          CRYPTO_SW_PROVIDER,
 150  150          {&modlinkage},
 151  151          NULL,
 152  152          &md4_crypto_ops,
 153  153          sizeof (md4_mech_info_tab)/sizeof (crypto_mech_info_t),
 154  154          md4_mech_info_tab
 155      -};
      155 +}}}};
 156  156  
 157  157  static crypto_kcf_provider_handle_t md4_prov_handle = NULL;
 158  158  
 159  159  int
 160  160  _init(void)
 161  161  {
 162  162          int ret;
 163  163  
 164  164          if ((ret = mod_install(&modlinkage)) != 0)
 165  165                  return (ret);
↓ open down ↓ 590 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX