#ifndef _HEADER_SMB_CRYPT_H
#define _HEADER_SMB_CRYPT_H
-/* Transport encryption state. */
-enum smb_trans_enc_type {
- SMB_TRANS_ENC_NTLM,
- SMB_TRANS_ENC_GSS
-};
-
struct smb_trans_enc_state {
- enum smb_trans_enc_type smb_enc_type;
uint16_t enc_ctx_num;
bool enc_on;
struct gensec_security *gensec_security;
Make a client state struct.
******************************************************************************/
-static struct smb_trans_enc_state *make_cli_enc_state(enum smb_trans_enc_type smb_enc_type)
+static struct smb_trans_enc_state *make_cli_enc_state(void)
{
struct smb_trans_enc_state *es = NULL;
es = SMB_MALLOC_P(struct smb_trans_enc_state);
return NULL;
}
ZERO_STRUCTP(es);
- es->smb_enc_type = smb_enc_type;
return es;
}
DATA_BLOB param_out = data_blob_null;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
struct auth_generic_state *auth_generic_state;
- struct smb_trans_enc_state *es = make_cli_enc_state(SMB_TRANS_ENC_NTLM);
+ struct smb_trans_enc_state *es = make_cli_enc_state();
if (!es) {
return NT_STATUS_NO_MEMORY;
DATA_BLOB param_out = data_blob_null;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
struct auth_generic_state *auth_generic_state;
- struct smb_trans_enc_state *es = make_cli_enc_state(SMB_TRANS_ENC_GSS);
+ struct smb_trans_enc_state *es = make_cli_enc_state();
if (!es) {
return NT_STATUS_NO_MEMORY;