[SCM] Samba Shared Repository - branch master updated

Simo Sorce idra at samba.org
Wed Aug 18 07:38:20 MDT 2010


The branch, master has been updated
       via  1ab17f1... s3-ads: Remove unused wrapper and make function static
      from  d7c8fb2... s3: async cli_list

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 1ab17f13a27429d34439c0ba3b77685e3a55c2c3
Author: Simo Sorce <idra at samba.org>
Date:   Wed Aug 18 09:36:54 2010 -0400

    s3-ads: Remove unused wrapper and make function static

-----------------------------------------------------------------------

Summary of changes:
 source3/include/krb5_protos.h    |    8 -------
 source3/libads/kerberos_keytab.c |   39 +++++++++++--------------------------
 2 files changed, 12 insertions(+), 35 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/krb5_protos.h b/source3/include/krb5_protos.h
index 0b8aa71..e229a14 100644
--- a/source3/include/krb5_protos.h
+++ b/source3/include/krb5_protos.h
@@ -124,14 +124,6 @@ krb5_error_code smb_krb5_keytab_name(TALLOC_CTX *mem_ctx,
 				     krb5_context context,
 				     krb5_keytab keytab,
 				     const char **keytab_name);
-int smb_krb5_kt_add_entry_ext(krb5_context context,
-			      krb5_keytab keytab,
-			      krb5_kvno kvno,
-			      const char *princ_s,
-			      krb5_enctype *enctypes,
-			      krb5_data password,
-			      bool no_salt,
-			      bool keep_old_entries);
 krb5_error_code smb_krb5_get_credentials(krb5_context context,
 					 krb5_ccache ccache,
 					 krb5_principal me,
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
index d2215ec..10c7087 100644
--- a/source3/libads/kerberos_keytab.c
+++ b/source3/libads/kerberos_keytab.c
@@ -180,14 +180,14 @@ out:
 	return ret;
 }
 
-int smb_krb5_kt_add_entry_ext(krb5_context context,
-			      krb5_keytab keytab,
-			      krb5_kvno kvno,
-			      const char *princ_s,
-			      krb5_enctype *enctypes,
-			      krb5_data password,
-			      bool no_salt,
-			      bool keep_old_entries)
+static int smb_krb5_kt_add_entry(krb5_context context,
+				 krb5_keytab keytab,
+				 krb5_kvno kvno,
+				 const char *princ_s,
+				 krb5_enctype *enctypes,
+				 krb5_data password,
+				 bool no_salt,
+				 bool keep_old_entries)
 {
 	krb5_error_code ret;
 	krb5_keytab_entry kt_entry;
@@ -250,23 +250,6 @@ out:
 	return (int)ret;
 }
 
-static int smb_krb5_kt_add_entry(krb5_context context,
-				 krb5_keytab keytab,
-				 krb5_kvno kvno,
-				 const char *princ_s,
-				 krb5_enctype *enctypes,
-				 krb5_data password)
-{
-	return smb_krb5_kt_add_entry_ext(context,
-					 keytab,
-					 kvno,
-					 princ_s,
-					 enctypes,
-					 password,
-					 false,
-					 false);
-}
-
 /**********************************************************************
  Adds a single service principal, i.e. 'host' to the system keytab
 ***********************************************************************/
@@ -415,7 +398,8 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc)
 
 	/* add the fqdn principal to the keytab */
 	ret = smb_krb5_kt_add_entry(context, keytab, kvno,
-				    princ_s, enctypes, password);
+				    princ_s, enctypes, password,
+				    false, false);
 	if (ret) {
 		DEBUG(1, (__location__ ": Failed to add entry to keytab\n"));
 		goto out;
@@ -424,7 +408,8 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc)
 	/* add the short principal name if we have one */
 	if (short_princ_s) {
 		ret = smb_krb5_kt_add_entry(context, keytab, kvno,
-					    short_princ_s, enctypes, password);
+					    short_princ_s, enctypes, password,
+					    false, false);
 		if (ret) {
 			DEBUG(1, (__location__
 				  ": Failed to add short entry to keytab\n"));


-- 
Samba Shared Repository


More information about the samba-cvs mailing list