mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
krb5_wrap: Move function declaration outside the function.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
1461d873a4
commit
5f92c81fb6
@ -1334,6 +1334,15 @@ static krb5_error_code smb_krb5_get_credentials_for_user_opt(krb5_context contex
|
||||
#endif /* HAVE_KRB5_GET_CREDS_OPT_SET_IMPERSONATE */
|
||||
|
||||
#ifdef HAVE_KRB5_GET_CREDENTIALS_FOR_USER
|
||||
|
||||
#if !HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER
|
||||
krb5_error_code KRB5_CALLCONV
|
||||
krb5_get_credentials_for_user(krb5_context context, krb5_flags options,
|
||||
krb5_ccache ccache, krb5_creds *in_creds,
|
||||
krb5_data *subject_cert,
|
||||
krb5_creds **out_creds);
|
||||
#endif /* !HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER */
|
||||
|
||||
static krb5_error_code smb_krb5_get_credentials_for_user(krb5_context context,
|
||||
krb5_ccache ccache,
|
||||
krb5_principal me,
|
||||
@ -1344,14 +1353,6 @@ static krb5_error_code smb_krb5_get_credentials_for_user(krb5_context context,
|
||||
krb5_error_code ret;
|
||||
krb5_creds in_creds;
|
||||
|
||||
#if !HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER
|
||||
krb5_error_code KRB5_CALLCONV
|
||||
krb5_get_credentials_for_user(krb5_context context, krb5_flags options,
|
||||
krb5_ccache ccache, krb5_creds *in_creds,
|
||||
krb5_data *subject_cert,
|
||||
krb5_creds **out_creds);
|
||||
#endif /* !HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER */
|
||||
|
||||
ZERO_STRUCT(in_creds);
|
||||
|
||||
if (impersonate_princ) {
|
||||
|
Loading…
Reference in New Issue
Block a user