| 1 | /*
|
|---|
| 2 | * Unix SMB/CIFS implementation.
|
|---|
| 3 | * collected prototypes header
|
|---|
| 4 | *
|
|---|
| 5 | * frozen from "make proto" in May 2008
|
|---|
| 6 | *
|
|---|
| 7 | * Copyright (C) Michael Adam 2008
|
|---|
| 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 _LIBNET_PROTO_H_
|
|---|
| 24 | #define _LIBNET_PROTO_H_
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | /* The following definitions come from libnet/libnet_join.c */
|
|---|
| 28 |
|
|---|
| 29 | NTSTATUS libnet_join_ok(const char *netbios_domain_name,
|
|---|
| 30 | const char *machine_name,
|
|---|
| 31 | const char *dc_name);
|
|---|
| 32 | WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx,
|
|---|
| 33 | struct libnet_JoinCtx **r);
|
|---|
| 34 | WERROR libnet_init_UnjoinCtx(TALLOC_CTX *mem_ctx,
|
|---|
| 35 | struct libnet_UnjoinCtx **r);
|
|---|
| 36 | WERROR libnet_Join(TALLOC_CTX *mem_ctx,
|
|---|
| 37 | struct libnet_JoinCtx *r);
|
|---|
| 38 | WERROR libnet_Unjoin(TALLOC_CTX *mem_ctx,
|
|---|
| 39 | struct libnet_UnjoinCtx *r);
|
|---|
| 40 |
|
|---|
| 41 | /* The following definitions come from librpc/gen_ndr/ndr_libnet_join.c */
|
|---|
| 42 |
|
|---|
| 43 | _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_JoinCtx *r);
|
|---|
| 44 | _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_UnjoinCtx *r);
|
|---|
| 45 |
|
|---|
| 46 | /* The following definitions come from libnet/libnet_keytab.c */
|
|---|
| 47 |
|
|---|
| 48 | #ifdef HAVE_KRB5
|
|---|
| 49 | krb5_error_code libnet_keytab_init(TALLOC_CTX *mem_ctx,
|
|---|
| 50 | const char *keytab_name,
|
|---|
| 51 | struct libnet_keytab_context **ctx);
|
|---|
| 52 | krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx);
|
|---|
| 53 |
|
|---|
| 54 | struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *ctx,
|
|---|
| 55 | const char *principal, int kvno,
|
|---|
| 56 | const krb5_enctype enctype,
|
|---|
| 57 | TALLOC_CTX *mem_ctx);
|
|---|
| 58 | NTSTATUS libnet_keytab_add_to_keytab_entries(TALLOC_CTX *mem_ctx,
|
|---|
| 59 | struct libnet_keytab_context *ctx,
|
|---|
| 60 | uint32_t kvno,
|
|---|
| 61 | const char *name,
|
|---|
| 62 | const char *prefix,
|
|---|
| 63 | const krb5_enctype enctype,
|
|---|
| 64 | DATA_BLOB blob);
|
|---|
| 65 | #endif
|
|---|
| 66 |
|
|---|
| 67 | /* The following definitions come from libnet/libnet_samsync.c */
|
|---|
| 68 |
|
|---|
| 69 | NTSTATUS libnet_samsync_init_context(TALLOC_CTX *mem_ctx,
|
|---|
| 70 | const struct dom_sid *domain_sid,
|
|---|
| 71 | struct samsync_context **ctx_p);
|
|---|
| 72 | NTSTATUS libnet_samsync(enum netr_SamDatabaseID database_id,
|
|---|
| 73 | struct samsync_context *ctx);
|
|---|
| 74 | NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
|
|---|
| 75 | struct lsa_BinaryString *r,
|
|---|
| 76 | struct netr_AcctLockStr **str_p);
|
|---|
| 77 |
|
|---|
| 78 | /* The following definitions come from libnet/libnet_dssync.c */
|
|---|
| 79 |
|
|---|
| 80 | NTSTATUS libnet_dssync_init_context(TALLOC_CTX *mem_ctx,
|
|---|
| 81 | struct dssync_context **ctx_p);
|
|---|
| 82 | NTSTATUS libnet_dssync(TALLOC_CTX *mem_ctx,
|
|---|
| 83 | struct dssync_context *ctx);
|
|---|
| 84 |
|
|---|
| 85 | #endif /* _LIBNET_PROTO_H_ */
|
|---|