summaryrefslogtreecommitdiff
path: root/source3/smbd/seal.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-26 15:58:11 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-06 08:12:48 +0100
commit09928fbcf6bef89b7b7a4d4b48301d1377906622 (patch)
treed17e79795efecf7811c31889ab541e29a573fb69 /source3/smbd/seal.c
parent7b42ceb414d3e14c411dd95dcd0b200113fe1191 (diff)
downloadsamba-09928fbcf6bef89b7b7a4d4b48301d1377906622.tar.gz
samba-09928fbcf6bef89b7b7a4d4b48301d1377906622.tar.bz2
samba-09928fbcf6bef89b7b7a4d4b48301d1377906622.zip
s3-auth Rename make_auth_ntlmssp() -> make_auth_gensec()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/seal.c')
-rw-r--r--source3/smbd/seal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c
index ddda763847..41d1765189 100644
--- a/source3/smbd/seal.c
+++ b/source3/smbd/seal.c
@@ -74,8 +74,8 @@ bool is_encrypted_packet(struct smbd_server_connection *sconn,
Create an gensec_security and ensure pointer copy is correct.
******************************************************************************/
-static NTSTATUS make_auth_ntlmssp(const struct tsocket_address *remote_address,
- struct smb_trans_enc_state *es)
+static NTSTATUS make_auth_gensec(const struct tsocket_address *remote_address,
+ struct smb_trans_enc_state *es, const char *oid)
{
struct gensec_security *gensec_security;
NTSTATUS status = auth_generic_prepare(NULL, remote_address,
@@ -86,7 +86,7 @@ static NTSTATUS make_auth_ntlmssp(const struct tsocket_address *remote_address,
gensec_want_feature(gensec_security, GENSEC_FEATURE_SEAL);
- status = gensec_start_mech_by_oid(gensec_security, GENSEC_OID_NTLMSSP);
+ status = gensec_start_mech_by_oid(gensec_security, oid);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(gensec_security);
@@ -246,8 +246,8 @@ static NTSTATUS make_srv_encryption_context(const struct tsocket_address *remote
switch (smb_enc_type) {
case SMB_TRANS_ENC_NTLM:
{
- NTSTATUS status = make_auth_ntlmssp(remote_address,
- es);
+ NTSTATUS status = make_auth_gensec(remote_address,
+ es, GENSEC_OID_NTLMSSP);
if (!NT_STATUS_IS_OK(status)) {
srv_free_encryption_context(&es);
return status;