From 4c978b68d9a87001f625c10421e7d4cc140b4554 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 2 Aug 2013 13:37:54 +0200 Subject: libcli/auth/schannel: make struct schannel_state private Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- libcli/auth/schannel.h | 13 ------------- libcli/auth/schannel_sign.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'libcli') diff --git a/libcli/auth/schannel.h b/libcli/auth/schannel.h index 271b5bb6ba..c53d68e679 100644 --- a/libcli/auth/schannel.h +++ b/libcli/auth/schannel.h @@ -22,17 +22,4 @@ #include "libcli/auth/libcli_auth.h" #include "libcli/auth/schannel_state.h" - -enum schannel_position { - SCHANNEL_STATE_START = 0, - SCHANNEL_STATE_UPDATE_1 -}; - -struct schannel_state { - enum schannel_position state; - uint64_t seq_num; - bool initiator; - struct netlogon_creds_CredentialState *creds; -}; - #include "libcli/auth/schannel_proto.h" diff --git a/libcli/auth/schannel_sign.c b/libcli/auth/schannel_sign.c index 518a6a90a4..88a6e1ec61 100644 --- a/libcli/auth/schannel_sign.c +++ b/libcli/auth/schannel_sign.c @@ -24,6 +24,18 @@ #include "../libcli/auth/schannel.h" #include "../lib/crypto/crypto.h" +enum schannel_position { + SCHANNEL_STATE_START = 0, + SCHANNEL_STATE_UPDATE_1 +}; + +struct schannel_state { + enum schannel_position state; + uint64_t seq_num; + bool initiator; + struct netlogon_creds_CredentialState *creds; +}; + #define SETUP_SEQNUM(state, buf, initiator) do { \ uint8_t *_buf = buf; \ uint32_t _seq_num_low = (state)->seq_num & UINT32_MAX; \ -- cgit