krb5_wrap: Rename kerberos_kinit_keyblock_cc()
authorAndreas Schneider <asn@samba.org>
Mon, 29 Aug 2016 09:33:24 +0000 (11:33 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Aug 2016 18:59:16 +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
source4/auth/kerberos/kerberos_util.c

index 06f144971f9d03f6da9ab4c14c1771cd20140e19..656fd7791ced9517161d68f8bf1c7ce94137f29f 100644 (file)
@@ -1723,13 +1723,14 @@ krb5_error_code smb_krb5_keyblock_init_contents(krb5_context context,
   The target_service defaults to the krbtgt if NULL, but could be
    kpasswd/realm or the local service (if we are doing s4u2self)
 */
-krb5_error_code kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc,
-                                          krb5_principal principal,
-                                          krb5_keyblock *keyblock,
-                                          const char *target_service,
-                                          krb5_get_init_creds_opt *krb_options,
-                                          time_t *expire_time,
-                                          time_t *kdc_time)
+krb5_error_code smb_krb5_kinit_keyblock_ccache(krb5_context ctx,
+                                              krb5_ccache cc,
+                                              krb5_principal principal,
+                                              krb5_keyblock *keyblock,
+                                              const char *target_service,
+                                              krb5_get_init_creds_opt *krb_options,
+                                              time_t *expire_time,
+                                              time_t *kdc_time)
 {
        krb5_error_code code = 0;
        krb5_creds my_creds;
index e10155d088a30d5c0efb407a20f5f6706c1ce109..a6be348acda16617dc8e949ada3332dc74eede4c 100644 (file)
@@ -243,13 +243,14 @@ krb5_error_code smb_krb5_keyblock_init_contents(krb5_context context,
                                                const void *data,
                                                size_t length,
                                                krb5_keyblock *key);
-krb5_error_code kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc,
-                                          krb5_principal principal,
-                                          krb5_keyblock *keyblock,
-                                          const char *target_service,
-                                          krb5_get_init_creds_opt *krb_options,
-                                          time_t *expire_time,
-                                          time_t *kdc_time);
+krb5_error_code smb_krb5_kinit_keyblock_ccache(krb5_context ctx,
+                                              krb5_ccache cc,
+                                              krb5_principal principal,
+                                              krb5_keyblock *keyblock,
+                                              const char *target_service,
+                                              krb5_get_init_creds_opt *krb_options,
+                                              time_t *expire_time,
+                                              time_t *kdc_time);
 krb5_error_code kerberos_kinit_password_cc(krb5_context ctx,
                                           krb5_ccache cc,
                                           krb5_principal principal,
index 653e3d2b6fd5c675d18e4a9cba98029c414a6552..4bbb2c7afa8d48fce1a9b73c6c9c876113358fcd 100644 (file)
@@ -375,10 +375,14 @@ done:
                                                 &keyblock);
                        
                        if (ret == 0) {
-                               ret = kerberos_kinit_keyblock_cc(smb_krb5_context->krb5_context, ccache, 
-                                                                princ, &keyblock,
-                                                                target_service, krb_options,
-                                                                NULL, &kdc_time);
+                               ret = smb_krb5_kinit_keyblock_ccache(smb_krb5_context->krb5_context,
+                                                                    ccache,
+                                                                    princ,
+                                                                    &keyblock,
+                                                                    target_service,
+                                                                    krb_options,
+                                                                    NULL,
+                                                                    &kdc_time);
                                krb5_free_keyblock_contents(smb_krb5_context->krb5_context, &keyblock);
                        }
                }