diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-02 13:37:54 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-10 09:19:02 +0200 |
commit | 4c978b68d9a87001f625c10421e7d4cc140b4554 (patch) | |
tree | 4afd0e3a58018a3b9e0d14d42a3b188577f239cc /libcli/auth | |
parent | e90e1b5c76db4cf589adf8856eb32e5f0d955734 (diff) | |
download | samba-4c978b68d9a87001f625c10421e7d4cc140b4554.tar.gz samba-4c978b68d9a87001f625c10421e7d4cc140b4554.tar.bz2 samba-4c978b68d9a87001f625c10421e7d4cc140b4554.zip |
libcli/auth/schannel: make struct schannel_state private
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/schannel.h | 13 | ||||
-rw-r--r-- | libcli/auth/schannel_sign.c | 12 |
2 files changed, 12 insertions, 13 deletions
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; \ |