diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-12 09:04:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-14 08:09:15 +0200 |
commit | 0a6d0f8edaa198898f50f274275efba8de41d843 (patch) | |
tree | ce0fee9fa2272f239c20fc9d6336b01674142ac0 /source3/include | |
parent | f205e4cada0a2e5d1289b5a1482dd670c65b1dfd (diff) | |
download | samba-0a6d0f8edaa198898f50f274275efba8de41d843.tar.gz samba-0a6d0f8edaa198898f50f274275efba8de41d843.tar.bz2 samba-0a6d0f8edaa198898f50f274275efba8de41d843.zip |
s3:smb_signing: add support for easier negotiation of SMB signing
We don't make use of it yet, but it will follow.
metze
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smb_signing.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/smb_signing.h b/source3/include/smb_signing.h index d2eda9b3e6..481be1d500 100644 --- a/source3/include/smb_signing.h +++ b/source3/include/smb_signing.h @@ -26,9 +26,11 @@ struct smb_signing_state; struct smb_signing_state *smb_signing_init(TALLOC_CTX *mem_ctx, bool allowed, + bool desired, bool mandatory); struct smb_signing_state *smb_signing_init_ex(TALLOC_CTX *mem_ctx, bool allowed, + bool desired, bool mandatory, void *(*alloc_fn)(TALLOC_CTX *, size_t), void (*free_fn)(TALLOC_CTX *, void *)); @@ -45,7 +47,8 @@ bool smb_signing_activate(struct smb_signing_state *si, bool smb_signing_is_active(struct smb_signing_state *si); bool smb_signing_is_allowed(struct smb_signing_state *si); bool smb_signing_is_mandatory(struct smb_signing_state *si); -bool smb_signing_set_negotiated(struct smb_signing_state *si); +bool smb_signing_set_negotiated(struct smb_signing_state *si, + bool allowed, bool mandatory); bool smb_signing_is_negotiated(struct smb_signing_state *si); #endif /* _SMB_SIGNING_H_ */ |