Changeset 745 for trunk/server/source3/include/krb5_protos.h
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
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 26 struct PAC_DATA; 27 struct PAC_SIGNATURE_DATA; 28 1 29 /* work around broken krb5.h on sles9 */ 2 30 #ifdef SIZEOF_LONG … … 37 65 #endif 38 66 67 /* The following definitions come from libsmb/clikrb5.c */ 68 39 69 /* Samba wrapper function for krb5 functionality. */ 40 70 bool setup_kaddr( krb5_address *pkaddr, struct sockaddr_storage *paddr); … … 47 77 #endif 48 78 krb5_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); 79 bool 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); 50 83 krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry); 51 84 krb5_principal kerberos_fetch_salt_princ_for_host_princ(krb5_context context, krb5_principal host_princ, int enctype); … … 69 102 size_t length); 70 103 time_t get_authtime_from_tkt(krb5_ticket *tkt); 71 void smb_krb5_free_ap_req(krb5_context context,72 krb5_ap_req *ap_req);73 104 krb5_error_code smb_krb5_get_keyinfo_from_ap_req(krb5_context context, 74 105 const krb5_data *inbuf, … … 89 120 krb5_const_principal princ1, 90 121 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);96 122 krb5_error_code smb_krb5_renew_ticket(const char *ccache_string, const char *client_string, const char *service_string, time_t *expire_time); 97 123 krb5_error_code kpasswd_err_to_krb5_err(krb5_error_code res_code); … … 124 150 krb5_keytab keytab, 125 151 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);134 152 krb5_error_code smb_krb5_get_credentials(krb5_context context, 135 153 krb5_ccache ccache, … … 145 163 char *smb_krb5_principal_get_realm(krb5_context context, 146 164 krb5_principal principal); 165 166 147 167 #endif /* HAVE_KRB5 */ 148 168 169 int 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 176 bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx, 177 DATA_BLOB *edata, 178 DATA_BLOB *edata_out); 179 bool 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.