summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/unit-test/api.current
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-01-09 02:07:05 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-09 15:35:44 -0500
commitecb9c348dd3e82aa8e68a466d89150dc0df3d46c (patch)
tree95c9f026e4d295d14640b4b40d22fd4ddec50239 /src/lib/kadm5/unit-test/api.current
parent2ca2166dbeb374a06d4dc92c9bb93c24133b916d (diff)
downloadkrb5-ecb9c348dd3e82aa8e68a466d89150dc0df3d46c.tar.gz
krb5-ecb9c348dd3e82aa8e68a466d89150dc0df3d46c.tar.xz
krb5-ecb9c348dd3e82aa8e68a466d89150dc0df3d46c.zip
Fold kadm5 internal policy functions into callers
kadm5_create_policy and kadm5_modify_policy had _internal variants in libkadm5srv (but not libkadm5clnt) which only existed to protect the policy_refcnt field from modification over the wire. Now that policy_refcnt is no longer used, we don't need the separation. Bump the library soname since this is technically an ABI change.
Diffstat (limited to 'src/lib/kadm5/unit-test/api.current')
-rw-r--r--src/lib/kadm5/unit-test/api.current/crte-policy.exp29
-rw-r--r--src/lib/kadm5/unit-test/api.current/mod-policy.exp28
2 files changed, 0 insertions, 57 deletions
diff --git a/src/lib/kadm5/unit-test/api.current/crte-policy.exp b/src/lib/kadm5/unit-test/api.current/crte-policy.exp
index 017bc3105..7e1eda63f 100644
--- a/src/lib/kadm5/unit-test/api.current/crte-policy.exp
+++ b/src/lib/kadm5/unit-test/api.current/crte-policy.exp
@@ -88,35 +88,6 @@ proc test3 {} {
}
test3
-# Description: (4) Fails for mask with REF_COUNT bit set.
-test "create-policy 4"
-proc test4 {} {
- global test
-
- if {! (( ! [policy_exists "$test/a"]) ||
- [delete_policy "$test/a"])} {
- error_and_restart "$test: couldn't delete policy \"$test/a\""
- return
- }
- if {! [cmd {
- kadm5_init admin admin $KADM5_ADMIN_SERVICE null \
- $KADM5_STRUCT_VERSION $KADM5_API_VERSION_3 \
- server_handle
- }]} {
- perror "$test: unexpected failure in init"
- return
- }
- one_line_fail_test [format {
- kadm5_create_policy $server_handle [simple_policy "%s/a"] \
- {KADM5_POLICY KADM5_REF_COUNT}
- } $test] "BAD_MASK"
- if { ! [cmd {kadm5_destroy $server_handle}]} {
- perror "$test: unexpected failure in destroy"
- return
- }
-}
-test4
-
# Description: (5) Fails for invalid policy name.
# 01/24/94: pshuang: untried.
test "create-policy 5"
diff --git a/src/lib/kadm5/unit-test/api.current/mod-policy.exp b/src/lib/kadm5/unit-test/api.current/mod-policy.exp
index 599e7d387..1bf00b524 100644
--- a/src/lib/kadm5/unit-test/api.current/mod-policy.exp
+++ b/src/lib/kadm5/unit-test/api.current/mod-policy.exp
@@ -31,34 +31,6 @@ proc test2 {} {
}
if {$RPC} { test2 }
-test "modify-policy 4"
-proc test4 {} {
- global test
-
- if {! ([policy_exists "$test/a"] ||
- [create_policy "$test/a"])} {
- error_and_restart "$test: couldn't create policy \"$test/a\""
- return
- }
- if {! [cmd {
- kadm5_init admin admin $KADM5_ADMIN_SERVICE null \
- $KADM5_STRUCT_VERSION $KADM5_API_VERSION_3 \
- server_handle
- }]} {
- perror "$test: unexpected failure in init"
- return
- }
- one_line_fail_test [format {
- kadm5_modify_policy $server_handle [simple_policy "%s/a"] \
- {KADM5_REF_COUNT}
- } $test] "BAD_MASK"
- if { ! [cmd {kadm5_destroy $server_handle}]} {
- perror "$test: unexpected failure in destroy"
- return
- }
-}
-test4
-
test "modify-policy 8"
proc test8 {} {
global test