summaryrefslogtreecommitdiffstats
path: root/src/plugins/kdb/db2
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2010-07-15 04:18:00 +0000
committerGreg Hudson <ghudson@mit.edu>2010-07-15 04:18:00 +0000
commit0bc31d0cba884ff4103f254dd9daf678e2a9a6c5 (patch)
tree01b0818ea7e1f1ef6283f8275f7b1b402e85484d /src/plugins/kdb/db2
parent002d9a7e7cb50e71c9ffdf3b2cf60bac3b374235 (diff)
downloadkrb5-0bc31d0cba884ff4103f254dd9daf678e2a9a6c5.tar.gz
krb5-0bc31d0cba884ff4103f254dd9daf678e2a9a6c5.tar.xz
krb5-0bc31d0cba884ff4103f254dd9daf678e2a9a6c5.zip
Add check_allowed_to_delegate to the DAL with a corresponding libkdb5
API, replacing the last method (CHECK_ALLOWED_TO_DELEGATE) of db_invoke. Remove db_invoke since it no longer has any methods. ticket: 6749 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24189 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins/kdb/db2')
-rw-r--r--src/plugins/kdb/db2/Makefile.in2
-rw-r--r--src/plugins/kdb/db2/db2_exp.c10
-rw-r--r--src/plugins/kdb/db2/kdb_db2.h7
-rw-r--r--src/plugins/kdb/db2/kdb_ext.c44
4 files changed, 1 insertions, 62 deletions
diff --git a/src/plugins/kdb/db2/Makefile.in b/src/plugins/kdb/db2/Makefile.in
index fb176f4a4..db570d706 100644
--- a/src/plugins/kdb/db2/Makefile.in
+++ b/src/plugins/kdb/db2/Makefile.in
@@ -54,7 +54,6 @@ SRCS= \
$(srcdir)/adb_openclose.c \
$(srcdir)/adb_policy.c \
$(srcdir)/kdb_db2.c \
- $(srcdir)/kdb_ext.c \
$(srcdir)/pol_xdr.c \
$(srcdir)/db2_exp.c \
$(srcdir)/lockout.c
@@ -65,7 +64,6 @@ STLIBOBJS= \
adb_openclose.o \
adb_policy.o \
kdb_db2.o \
- kdb_ext.o \
pol_xdr.o \
db2_exp.o \
lockout.o
diff --git a/src/plugins/kdb/db2/db2_exp.c b/src/plugins/kdb/db2/db2_exp.c
index 24c62a434..2de4bbcac 100644
--- a/src/plugins/kdb/db2/db2_exp.c
+++ b/src/plugins/kdb/db2/db2_exp.c
@@ -192,13 +192,6 @@ WRAP_VOID (krb5_db2_audit_as_req,
krb5_timestamp authtime, krb5_error_code error_code),
(kcontext, request, client, server, authtime, error_code));
-WRAP_K (krb5_db2_invoke,
- (krb5_context kcontext,
- unsigned int method,
- const krb5_data *request,
- krb5_data *response),
- (kcontext, method, request, response));
-
static krb5_error_code
hack_init (int dal_version)
{
@@ -258,6 +251,5 @@ kdb_vftabl PLUGIN_SYMBOL_NAME(krb5_db2, kdb_function_table) = {
/* check_policy_as */ wrap_krb5_db2_check_policy_as,
0,
/* audit_as_req */ wrap_krb5_db2_audit_as_req,
- 0,
- /* invoke */ wrap_krb5_db2_invoke
+ 0, 0
};
diff --git a/src/plugins/kdb/db2/kdb_db2.h b/src/plugins/kdb/db2/kdb_db2.h
index a1d0d1976..f7c68bc91 100644
--- a/src/plugins/kdb/db2/kdb_db2.h
+++ b/src/plugins/kdb/db2/kdb_db2.h
@@ -157,11 +157,4 @@ krb5_db2_audit_as_req(krb5_context kcontext, krb5_kdc_req *request,
krb5_db_entry *client, krb5_db_entry *server,
krb5_timestamp authtime, krb5_error_code error_code);
-/* methods */
-krb5_error_code
-krb5_db2_invoke(krb5_context context,
- unsigned int method,
- const krb5_data *req,
- krb5_data *rep);
-
#endif /* KRB5_KDB_DB2_H */
diff --git a/src/plugins/kdb/db2/kdb_ext.c b/src/plugins/kdb/db2/kdb_ext.c
deleted file mode 100644
index a27aa2ca7..000000000
--- a/src/plugins/kdb/db2/kdb_ext.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-/*
- * plugins/kdb/db2/kdb_ext.c
- *
- * Copyright (C) 2009 by the Massachusetts Institute of Technology.
- * All rights reserved.
- *
- * Export of this software from the United States of America may
- * require a specific license from the United States Government.
- * It is the responsibility of any person or organization contemplating
- * export to obtain such a license before exporting.
- *
- * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
- * distribute this software and its documentation for any purpose and
- * without fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright notice and
- * this permission notice appear in supporting documentation, and that
- * the name of M.I.T. not be used in advertising or publicity pertaining
- * to distribution of the software without specific, written prior
- * permission. Furthermore if you modify this software you must label
- * your software as modified software and not distribute it in such a
- * fashion that it might be confused with the original M.I.T. software.
- * M.I.T. makes no representations about the suitability of
- * this software for any purpose. It is provided "as is" without express
- * or implied warranty.
- *
- *
- *
- */
-
-#include "k5-int.h"
-#include "kdb.h"
-#include <stdio.h>
-#include <errno.h>
-#include "kdb_db2.h"
-
-krb5_error_code
-krb5_db2_invoke(krb5_context context,
- unsigned int method,
- const krb5_data *req,
- krb5_data *rep)
-{
- return KRB5_PLUGIN_OP_NOTSUPP;
-}