diff options
author | Günther Deschner <gd@samba.org> | 2014-04-25 14:14:20 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-08-08 06:02:34 +0200 |
commit | 22c6766693179422d721a752ec942e2a7730a0a0 (patch) | |
tree | 3a896ca0aa1659cc37c29e0d67ffa2345b7ec294 /source3/libads | |
parent | 016cd35d75b33315b78547c231ba82347b448840 (diff) | |
download | samba-22c6766693179422d721a752ec942e2a7730a0a0.tar.gz |
samba: use smb_krb5_create_key_from_string() in some places.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index f3c23ea46ea..d5e023873f8 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -490,7 +490,12 @@ int create_kerberos_key_from_string(krb5_context context, return 0; } salt_princ = kerberos_fetch_salt_princ_for_host_princ(context, host_princ, enctype); - ret = create_kerberos_key_from_string_direct(context, salt_princ ? salt_princ : host_princ, password, key, enctype); + ret = smb_krb5_create_key_from_string(context, + salt_princ ? &salt_princ : &host_princ, + NULL, + password, + enctype, + key); if (salt_princ) { krb5_free_principal(context, salt_princ); } |