1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:netapi: Make 'struct libnetapi_ctx' opaque

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2021-03-18 10:06:53 +01:00 committed by Günther Deschner
parent bcc3945e53
commit e79b067e23
3 changed files with 17 additions and 14 deletions

View File

@ -1362,19 +1362,7 @@ struct NETLOGON_INFO_4 {
/****************************************************************
****************************************************************/
struct libnetapi_ctx {
char *debuglevel;
char *error_string;
char *username;
char *workgroup;
char *password;
char *krb5_cc_env;
int use_kerberos;
int use_ccache;
int disable_policy_handle_cache;
void *private_data;
};
struct libnetapi_ctx;
/****************************************************************
****************************************************************/

View File

@ -53,6 +53,21 @@ struct libnetapi_private_ctx {
struct messaging_context *msg_ctx;
};
struct libnetapi_ctx {
char *debuglevel;
char *error_string;
char *username;
char *workgroup;
char *password;
char *krb5_cc_env;
int use_kerberos;
int use_ccache;
int disable_policy_handle_cache;
void *private_data;
};
NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx,
const char *format, ...)
PRINTF_ATTRIBUTE(2,3);

View File

@ -42,7 +42,7 @@ bld.SAMBA3_LIBRARY('netapi',
''',
public_headers='../source3/lib/netapi/netapi.h',
pc_files='libnet/netapi.pc',
vnum='0.1.0')
vnum='1.0.0')
bld.SAMBA3_LIBRARY('gse',
source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',