Print this page
12513 SMB 3.1.1 support for server
@@ -9,10 +9,11 @@
* http://www.illumos.org/license/CDDL.
*/
/*
* Copyright 2018 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2020 RackTop Systems, Inc.
*/
/*
* Helper functions for SMB3 encryption using PKCS#11
*
@@ -31,24 +32,39 @@
* (getmech, init, update, final)
*/
/* ARGSUSED */
int
-smb3_encrypt_getmech(smb_crypto_mech_t *mech)
+smb3_aes_ccm_getmech(smb_crypto_mech_t *mech)
+{
+ cmn_err(CE_NOTE, "fksmbsrv does not support SMB3 Encryption");
+ return (-1);
+}
+
+/* ARGSUSED */
+int
+smb3_aes_gcm_getmech(smb_crypto_mech_t *mech)
{
cmn_err(CE_NOTE, "fksmbsrv does not support SMB3 Encryption");
return (-1);
}
/* ARGSUSED */
void
-smb3_crypto_init_param(smb3_crypto_param_t *param,
+smb3_crypto_init_ccm_param(smb3_crypto_param_t *param,
uint8_t *nonce, size_t noncesize, uint8_t *auth, size_t authsize,
size_t datasize)
{
}
+/* ARGSUSED */
+void
+smb3_crypto_init_gcm_param(smb3_crypto_param_t *param,
+ uint8_t *nonce, size_t noncesize, uint8_t *auth, size_t authsize)
+{
+}
+
/*
* Start the KCF session, load the key
*/
/* ARGSUSED */