]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-librpc: Remove unused init_netr_CryptPassword()
authorAndrew Bartlett <abartlet@samba.org>
Fri, 16 Aug 2019 02:22:42 +0000 (14:22 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 21 Aug 2019 09:57:30 +0000 (09:57 +0000)
Unused since 38d4dba37406515181e4d6f1a1faffc18e652e27 in 2013

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_client/cli_netlogon.c
source3/rpc_client/init_netlogon.c [deleted file]
source3/rpc_client/init_netlogon.h [deleted file]
source3/wscript_build

index 505a1d015bc338d9ca380a93cbb2392d1372540b..ea9cb7570489a5d7a96095ff401011791eda5cbf 100644 (file)
@@ -30,7 +30,6 @@
 #include "../librpc/gen_ndr/ndr_netlogon_c.h"
 #include "../librpc/gen_ndr/schannel.h"
 #include "rpc_client/cli_netlogon.h"
-#include "rpc_client/init_netlogon.h"
 #include "rpc_client/util_netlogon.h"
 #include "../libcli/security/security.h"
 #include "lib/param/param.h"
diff --git a/source3/rpc_client/init_netlogon.c b/source3/rpc_client/init_netlogon.c
deleted file mode 100644 (file)
index 26deaba..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- *  Unix SMB/CIFS implementation.
- *  RPC Pipe client / server routines
- *  Copyright (C) Guenther Deschner                  2008,2012
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "includes.h"
-#include "../libcli/auth/libcli_auth.h"
-#include "../lib/crypto/crypto.h"
-#include "rpc_client/init_netlogon.h"
-
-/*************************************************************************
- inits a netr_CryptPassword structure
- *************************************************************************/
-
-void init_netr_CryptPassword(const char *pwd,
-                            struct netlogon_creds_CredentialState *creds,
-                            struct netr_CryptPassword *pwd_buf)
-{
-       struct samr_CryptPassword password_buf;
-       NTSTATUS status;
-
-       encode_pw_buffer(password_buf.data, pwd, STR_UNICODE);
-
-       if (creds->negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) {
-               netlogon_creds_aes_encrypt(creds, password_buf.data, 516);
-       } else {
-               status = netlogon_creds_arcfour_crypt(creds,
-                                                     password_buf.data,
-                                                     516);
-               if (!NT_STATUS_IS_OK(status)) {
-                       return;
-               }
-       }
-       memcpy(pwd_buf->data, password_buf.data, 512);
-       pwd_buf->length = IVAL(password_buf.data, 512);
-}
diff --git a/source3/rpc_client/init_netlogon.h b/source3/rpc_client/init_netlogon.h
deleted file mode 100644 (file)
index bb4496b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- *  Unix SMB/CIFS implementation.
- *  RPC Pipe client / server routines
- *  Copyright (C) Guenther Deschner                  2008.
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _RPC_CLIENT_INIT_NETLOGON_H_
-#define _RPC_CLIENT_INIT_NETLOGON_H_
-
-/* The following definitions come from rpc_client/init_netlogon.c  */
-
-void init_netr_CryptPassword(const char *pwd,
-                            struct netlogon_creds_CredentialState *creds,
-                            struct netr_CryptPassword *pwd_buf);
-
-#endif /* _RPC_CLIENT_INIT_NETLOGON_H_ */
index 2c444155d8c8592fd3a08c30ce8b4843719a2824..b93ee6ff796b9cb84472eb65b23cbbc1386b0fb0 100644 (file)
@@ -1025,7 +1025,6 @@ bld.SAMBA3_LIBRARY('libcli_netlogon3',
                    deps='''
                         msrpc3
                         RPC_NDR_NETLOGON
-                        INIT_NETLOGON
                         cliauth
                         smbconf
                         NETLOGON_CREDS_CLI''',
@@ -1058,10 +1057,6 @@ bld.SAMBA3_SUBSYSTEM('INIT_LSA',
                     source='rpc_client/init_lsa.c',
                     deps='samba-util')
 
-bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
-                    source='rpc_client/init_netlogon.c',
-                    deps='samba-util')
-
 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
                     source='rpc_client/init_samr.c',
                     deps='samba-util GNUTLS_HELPERS')