diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-01-20 16:37:04 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-01-20 23:44:05 +0100 |
commit | 084b4e235e2f500614638cb9c023a5ae8c2e531d (patch) | |
tree | cf62ba3dd52756abf5f016fa84ca8fa7ff0096b4 /libcli/auth/ntlmssp.h | |
parent | 039dd96be236ab0ed1656bd854f407d26e8d3433 (diff) | |
download | samba-084b4e235e2f500614638cb9c023a5ae8c2e531d.tar.gz samba-084b4e235e2f500614638cb9c023a5ae8c2e531d.tar.bz2 samba-084b4e235e2f500614638cb9c023a5ae8c2e531d.zip |
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
Diffstat (limited to 'libcli/auth/ntlmssp.h')
-rw-r--r-- | libcli/auth/ntlmssp.h | 8 |
1 files changed, 8 insertions, 0 deletions
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); |