krb5_wrap: Remove unused smb_krb5_parse_name_norealm()
authorAndreas Schneider <asn@samba.org>
Tue, 30 Aug 2016 12:20:03 +0000 (14:20 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Aug 2016 18:59:17 +0000 (20:59 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c
lib/krb5_wrap/krb5_samba.h

index 02eb3ac9447580b368ad8fd4e051b08580fc2293..dc547aaad9fb3549ca87a2866a0e670278741f4d 100644 (file)
@@ -509,18 +509,6 @@ krb5_error_code smb_krb5_unparse_name(TALLOC_CTX *mem_ctx,
        return 0;
 }
 
-krb5_error_code smb_krb5_parse_name_norealm(krb5_context context, 
-                                           const char *name, 
-                                           krb5_principal *principal)
-{
-       /* we are cheating here because parse_name will in fact set the realm.
-        * We don't care as the only caller of smb_krb5_parse_name_norealm
-        * ignores the realm anyway when calling
-        * smb_krb5_principal_compare_any_realm later - Guenther */
-
-       return smb_krb5_parse_name(context, name, principal);
-}
-
 bool smb_krb5_principal_compare_any_realm(krb5_context context, 
                                          krb5_const_principal princ1, 
                                          krb5_const_principal princ2)
index 5c4b9bfff2939f05e560107050e3560941480ad1..babdfc0ec55771891ec84309e32704f37fd3b4a4 100644 (file)
@@ -184,9 +184,6 @@ krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *
 void kerberos_set_creds_enctype(krb5_creds *pcreds, int enctype);
 bool kerberos_compatible_enctypes(krb5_context context, krb5_enctype enctype1, krb5_enctype enctype2);
 void smb_krb5_free_data_contents(krb5_context context, krb5_data *pdata);
-krb5_error_code smb_krb5_parse_name_norealm(krb5_context context,
-                                           const char *name,
-                                           krb5_principal *principal);
 bool smb_krb5_principal_compare_any_realm(krb5_context context,
                                          krb5_const_principal princ1,
                                          krb5_const_principal princ2);