Print this page
fixup .text where possible
additional style updates in crypto
7127 remove -Wno-missing-braces from Makefile.uts
@@ -48,12 +48,12 @@
"RC4 Kernel SW Provider"
};
static struct modlinkage modlinkage = {
MODREV_1,
- (void *)&modlcrypto,
- NULL
+ { (void *)&modlcrypto,
+ NULL }
};
/*
* CSPI information (entry points, provider info, etc.)
*/
@@ -112,36 +112,36 @@
NULL,
rc4_free_context
};
static crypto_ops_t rc4_crypto_ops = {
- &rc4_control_ops,
- NULL,
- &rc4_cipher_ops,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- &rc4_ctx_ops
+ .co_control_ops = &rc4_control_ops,
+ .co_digest_ops = NULL,
+ .co_cipher_ops = &rc4_cipher_ops,
+ .co_mac_ops = NULL,
+ .co_sign_ops = NULL,
+ .co_verify_ops = NULL,
+ .co_dual_ops = NULL,
+ .co_dual_cipher_mac_ops = NULL,
+ .co_random_ops = NULL,
+ .co_session_ops = NULL,
+ .co_object_ops = NULL,
+ .co_key_ops = NULL,
+ .co_provider_ops = NULL,
+ .co_ctx_ops = &rc4_ctx_ops
};
-static crypto_provider_info_t rc4_prov_info = {
+static crypto_provider_info_t rc4_prov_info = {{{{
CRYPTO_SPI_VERSION_1,
"RC4 Software Provider",
CRYPTO_SW_PROVIDER,
{&modlinkage},
NULL,
&rc4_crypto_ops,
sizeof (rc4_mech_info_tab)/sizeof (crypto_mech_info_t),
rc4_mech_info_tab
-};
+}}}};
static crypto_kcf_provider_handle_t rc4_prov_handle = NULL;
static mblk_t *advance_position(mblk_t *, off_t, uchar_t **);
static int crypto_arcfour_crypt(ARCFour_key *, uchar_t *, crypto_data_t *,