From 084b4e235e2f500614638cb9c023a5ae8c2e531d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 20 Jan 2011 16:37:04 +1100 Subject: libcli/auth move ntlmssp_wrap() and ntlmssp_unwrap() into common code. The idea here is to allow the source3/libads/sasl.c code to call this instead of the lower level ntlmssp_* functions. Andrew Bartlett --- libcli/auth/ntlmssp.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcli/auth/ntlmssp.h') diff --git a/libcli/auth/ntlmssp.h b/libcli/auth/ntlmssp.h index dead412c99..495d94f6a0 100644 --- a/libcli/auth/ntlmssp.h +++ b/libcli/auth/ntlmssp.h @@ -160,4 +160,12 @@ NTSTATUS ntlmssp_unseal_packet(struct ntlmssp_state *ntlmssp_state, uint8_t *data, size_t length, const uint8_t *whole_pdu, size_t pdu_length, const DATA_BLOB *sig); +NTSTATUS ntlmssp_wrap(struct ntlmssp_state *ntlmssp_state, + TALLOC_CTX *out_mem_ctx, + const DATA_BLOB *in, + DATA_BLOB *out); +NTSTATUS ntlmssp_unwrap(struct ntlmssp_state *ntlmssp_stae, + TALLOC_CTX *out_mem_ctx, + const DATA_BLOB *in, + DATA_BLOB *out); NTSTATUS ntlmssp_sign_init(struct ntlmssp_state *ntlmssp_state); -- cgit