summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-09-01 11:58:33 -0400
committerGünther Deschner <gd@samba.org>2010-09-23 10:36:54 -0700
commit0e5eb82a6f29e33ca2cafe0ed7103395837b3fc0 (patch)
treeb451c24a267ab7817a3d19245abc800968b39a1a /source3/librpc
parentffdfcfb514c1a0849ba334ae6b9b00d3ad3c2227 (diff)
downloadsamba-0e5eb82a6f29e33ca2cafe0ed7103395837b3fc0.tar.gz
samba-0e5eb82a6f29e33ca2cafe0ed7103395837b3fc0.tar.bz2
samba-0e5eb82a6f29e33ca2cafe0ed7103395837b3fc0.zip
s3-dcerpc: move crypto stuff in /librpc/crypto
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/crypto/gse.c (renamed from source3/librpc/rpc/dcerpc_gssapi.c)6
-rw-r--r--source3/librpc/crypto/gse.h (renamed from source3/librpc/rpc/dcerpc_gssapi.h)7
-rw-r--r--source3/librpc/crypto/gse_krb5.c (renamed from source3/librpc/rpc/dcerpc_krb5.c)4
-rw-r--r--source3/librpc/crypto/gse_krb5.h (renamed from source3/librpc/rpc/dcerpc_krb5.h)8
-rw-r--r--source3/librpc/rpc/dcerpc_helpers.c2
-rw-r--r--source3/librpc/rpc/dcerpc_spnego.c2
6 files changed, 15 insertions, 14 deletions
diff --git a/source3/librpc/rpc/dcerpc_gssapi.c b/source3/librpc/crypto/gse.c
index 2918cfdf8f..c12656b0fa 100644
--- a/source3/librpc/rpc/dcerpc_gssapi.c
+++ b/source3/librpc/crypto/gse.c
@@ -20,12 +20,12 @@
/* We support only GSSAPI/KRB5 here */
#include "includes.h"
-#include "dcerpc_gssapi.h"
+#include "gse.h"
#if defined(HAVE_KRB5) && defined(HAVE_GSSAPI_GSSAPI_EXT_H) && defined(HAVE_GSS_WRAP_IOV)
#include "smb_krb5.h"
-#include "dcerpc_krb5.h"
+#include "gse_krb5.h"
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h>
@@ -378,7 +378,7 @@ NTSTATUS gse_init_server(TALLOC_CTX *mem_ctx,
}
if (!keytab_name) {
- ret = smb_krb5_get_server_keytab(gse_ctx->k5ctx,
+ ret = gse_krb5_get_server_keytab(gse_ctx->k5ctx,
&gse_ctx->keytab);
if (ret) {
status = NT_STATUS_INTERNAL_ERROR;
diff --git a/source3/librpc/rpc/dcerpc_gssapi.h b/source3/librpc/crypto/gse.h
index 0ffed2c457..6f8b6735ad 100644
--- a/source3/librpc/rpc/dcerpc_gssapi.h
+++ b/source3/librpc/crypto/gse.h
@@ -17,8 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _CLI_PIPE_GSSAPI_H_
-#define _CLI_PIPE_GSSAPI_H_
+#ifndef _GSE_H_
+#define _GSE_H_
struct gse_context;
@@ -73,4 +73,5 @@ NTSTATUS gse_sign(TALLOC_CTX *mem_ctx, struct gse_context *gse_ctx,
DATA_BLOB *data, DATA_BLOB *signature);
NTSTATUS gse_sigcheck(TALLOC_CTX *mem_ctx, struct gse_context *gse_ctx,
DATA_BLOB *data, DATA_BLOB *signature);
-#endif /* _CLI_PIPE_GSSAPI_H_ */
+
+#endif /* _GSE_H_ */
diff --git a/source3/librpc/rpc/dcerpc_krb5.c b/source3/librpc/crypto/gse_krb5.c
index 22443b63ff..735dff059e 100644
--- a/source3/librpc/rpc/dcerpc_krb5.c
+++ b/source3/librpc/crypto/gse_krb5.c
@@ -20,7 +20,7 @@
#include "includes.h"
#include "smb_krb5.h"
#include "secrets.h"
-#include "librpc/rpc/dcerpc_krb5.h"
+#include "gse_krb5.h"
#ifdef HAVE_KRB5
@@ -348,7 +348,7 @@ static krb5_error_code get_mem_keytab_from_system_keytab(krb5_context krbctx,
return KRB5_KT_NOTFOUND;
}
-krb5_error_code smb_krb5_get_server_keytab(krb5_context krbctx,
+krb5_error_code gse_krb5_get_server_keytab(krb5_context krbctx,
krb5_keytab *keytab)
{
krb5_error_code ret;
diff --git a/source3/librpc/rpc/dcerpc_krb5.h b/source3/librpc/crypto/gse_krb5.h
index c5d7dd6a09..ea789c947a 100644
--- a/source3/librpc/rpc/dcerpc_krb5.h
+++ b/source3/librpc/crypto/gse_krb5.h
@@ -17,14 +17,14 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _DCERPC_KRB5_H_
-#define _DCERPC_KRB5_H_
+#ifndef _GSE_KRB5_H_
+#define _GSE_KRB5_H_
#ifdef HAVE_KRB5
-krb5_error_code smb_krb5_get_server_keytab(krb5_context krbctx,
+krb5_error_code gse_krb5_get_server_keytab(krb5_context krbctx,
krb5_keytab *keytab);
#endif /* HAVE_KRB5 */
-#endif /* _DCERPC_KRB5_H_ */
+#endif /* _GSE_KRB5_H_ */
diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c
index b658579d19..8944b395d8 100644
--- a/source3/librpc/rpc/dcerpc_helpers.c
+++ b/source3/librpc/rpc/dcerpc_helpers.c
@@ -26,7 +26,7 @@
#include "../libcli/auth/spnego.h"
#include "../libcli/auth/ntlmssp.h"
#include "ntlmssp_wrap.h"
-#include "librpc/rpc/dcerpc_gssapi.h"
+#include "librpc/crypto/gse.h"
#include "librpc/rpc/dcerpc_spnego.h"
#undef DBGC_CLASS
diff --git a/source3/librpc/rpc/dcerpc_spnego.c b/source3/librpc/rpc/dcerpc_spnego.c
index ec81a2c701..9ea2a561da 100644
--- a/source3/librpc/rpc/dcerpc_spnego.c
+++ b/source3/librpc/rpc/dcerpc_spnego.c
@@ -22,7 +22,7 @@
#include "include/ntlmssp_wrap.h"
#include "librpc/gen_ndr/ntlmssp.h"
#include "dcerpc_spnego.h"
-#include "dcerpc_gssapi.h"
+#include "librpc/crypto/gse.h"
struct spnego_context {
enum dcerpc_AuthType auth_type;