diff options
author | Simo Sorce <idra@samba.org> | 2010-07-23 14:47:36 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-28 12:24:44 -0400 |
commit | 135a82e78f9537fb7b7f4b82fb7cba065737675f (patch) | |
tree | c024764fedf503f904ea6ebb716a04cac4a880b2 /source3/librpc/rpc/dcerpc_gssapi.h | |
parent | 72088096af8dbf57cbc85c71cd0eef4447e7560d (diff) | |
download | samba-135a82e78f9537fb7b7f4b82fb7cba065737675f.tar.gz samba-135a82e78f9537fb7b7f4b82fb7cba065737675f.tar.bz2 samba-135a82e78f9537fb7b7f4b82fb7cba065737675f.zip |
s3-decrpc: Introduce gssapi support for dcerpc krb5 auth
Diffstat (limited to 'source3/librpc/rpc/dcerpc_gssapi.h')
-rw-r--r-- | source3/librpc/rpc/dcerpc_gssapi.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/source3/librpc/rpc/dcerpc_gssapi.h b/source3/librpc/rpc/dcerpc_gssapi.h new file mode 100644 index 0000000000..c172cacc14 --- /dev/null +++ b/source3/librpc/rpc/dcerpc_gssapi.h @@ -0,0 +1,47 @@ +/* + * GSSAPI Security Extensions + * RPC Pipe client routines + * Copyright (C) Simo Sorce 2010. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _CLI_PIPE_GSSAPI_H_ +#define _CLI_PIPE_GSSAPI_H_ + +struct gse_context; + +#ifndef GSS_C_DCE_STYLE +#define GSS_C_DCE_STYLE 0x1000 +#endif + +NTSTATUS gse_init_client(TALLOC_CTX *mem_ctx, + enum dcerpc_AuthType auth_type, + enum dcerpc_AuthLevel auth_level, + const char *ccache_name, + const char *server, + const char *service, + const char *username, + const char *password, + uint32_t add_gss_c_flags, + struct pipe_auth_data **_auth); + +NTSTATUS gse_get_client_auth_token(TALLOC_CTX *mem_ctx, + struct gse_context *gse_ctx, + DATA_BLOB *token_in, + DATA_BLOB *token_out); + +DATA_BLOB gse_get_session_key(struct gse_context *gse_ctx); + +#endif /* _CLI_PIPE_GSSAPI_H_ */ |