Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/include/krb5_protos.h

    r414 r745  
     1/*
     2   Unix SMB/CIFS implementation.
     3   simple kerberos5 routines for active directory
     4   Copyright (C) Andrew Tridgell 2001
     5   Copyright (C) Luke Howard 2002-2003
     6   Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
     7   Copyright (C) Guenther Deschner 2005-2009
     8
     9   This program is free software; you can redistribute it and/or modify
     10   it under the terms of the GNU General Public License as published by
     11   the Free Software Foundation; either version 3 of the License, or
     12   (at your option) any later version.
     13
     14   This program is distributed in the hope that it will be useful,
     15   but WITHOUT ANY WARRANTY; without even the implied warranty of
     16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     17   GNU General Public License for more details.
     18
     19   You should have received a copy of the GNU General Public License
     20   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     21*/
     22
     23#ifndef _INCLUDE_KRB5_PROTOS_H_
     24#define _INCLUDE_KRB5_PROTOS_H_
     25
     26struct PAC_DATA;
     27struct PAC_SIGNATURE_DATA;
     28
    129/* work around broken krb5.h on sles9 */
    230#ifdef SIZEOF_LONG
     
    3765#endif
    3866
     67/* The following definitions come from libsmb/clikrb5.c  */
     68
    3969/* Samba wrapper function for krb5 functionality. */
    4070bool setup_kaddr( krb5_address *pkaddr, struct sockaddr_storage *paddr);
     
    4777#endif
    4878krb5_error_code get_kerberos_allowed_etypes(krb5_context context, krb5_enctype **enctypes);
    49 bool get_krb5_smb_session_key(krb5_context context, krb5_auth_context auth_context, DATA_BLOB *session_key, bool remote);
     79bool get_krb5_smb_session_key(TALLOC_CTX *mem_ctx,
     80                              krb5_context context,
     81                              krb5_auth_context auth_context,
     82                              DATA_BLOB *session_key, bool remote);
    5083krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry);
    5184krb5_principal kerberos_fetch_salt_princ_for_host_princ(krb5_context context, krb5_principal host_princ, int enctype);
     
    69102                                         size_t length);
    70103time_t get_authtime_from_tkt(krb5_ticket *tkt);
    71 void smb_krb5_free_ap_req(krb5_context context,
    72                           krb5_ap_req *ap_req);
    73104krb5_error_code smb_krb5_get_keyinfo_from_ap_req(krb5_context context,
    74105                                                 const krb5_data *inbuf,
     
    89120                                          krb5_const_principal princ1,
    90121                                          krb5_const_principal princ2);
    91 int cli_krb5_get_ticket(const char *principal, time_t time_offset,
    92                         DATA_BLOB *ticket, DATA_BLOB *session_key_krb5,
    93                         uint32 extra_ap_opts, const char *ccname,
    94                         time_t *tgs_expire,
    95                         const char *impersonate_princ_s);
    96122krb5_error_code smb_krb5_renew_ticket(const char *ccache_string, const char *client_string, const char *service_string, time_t *expire_time);
    97123krb5_error_code kpasswd_err_to_krb5_err(krb5_error_code res_code);
     
    124150                                     krb5_keytab keytab,
    125151                                     const char **keytab_name);
    126 int smb_krb5_kt_add_entry_ext(krb5_context context,
    127                               krb5_keytab keytab,
    128                               krb5_kvno kvno,
    129                               const char *princ_s,
    130                               krb5_enctype *enctypes,
    131                               krb5_data password,
    132                               bool no_salt,
    133                               bool keep_old_entries);
    134152krb5_error_code smb_krb5_get_credentials(krb5_context context,
    135153                                         krb5_ccache ccache,
     
    145163char *smb_krb5_principal_get_realm(krb5_context context,
    146164                                   krb5_principal principal);
     165
     166
    147167#endif /* HAVE_KRB5 */
    148168
     169int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx,
     170                        const char *principal, time_t time_offset,
     171                        DATA_BLOB *ticket, DATA_BLOB *session_key_krb5,
     172                        uint32_t extra_ap_opts, const char *ccname,
     173                        time_t *tgs_expire,
     174                        const char *impersonate_princ_s);
     175
     176bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx,
     177                           DATA_BLOB *edata,
     178                           DATA_BLOB *edata_out);
     179bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_pac_data);
     180
     181#endif /* _INCLUDE_KRB5_PROTOS_H_ */
Note: See TracChangeset for help on using the changeset viewer.