/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SMB_SIGNING_H_
#define _SMB_SIGNING_H_
/*
* SMB signing routines used in {smb,smb2}_signing.c
*/
#ifdef _KERNEL
#else
#include <security/cryptoki.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/* KCF variant */
#else /* _KERNEL */
/* PKCS11 variant */
#endif /* _KERNEL */
/*
* SMB signing routines used in smb_signing.c
*/
int smb_md5_getmech(smb_sign_mech_t *);
/*
* SMB2 signing routines used in smb2_signing.c
*/
int smb2_hmac_getmech(smb_sign_mech_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SMB_SIGNING_H_ */