diff options
author | Russ Allbery <rra@stanford.edu> | 2007-10-10 20:15:30 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-10-10 20:15:30 +0000 |
commit | 8b4f558134a618660c424d2dabd90033b7b8e4b9 (patch) | |
tree | 9ea16848ae6add6c37a73acb8d4f3551d975337a /perl/Wallet/Object/Keytab.pm | |
parent | 9e6b38452a221eca3c0ac775ba08ab4696716b71 (diff) |
Make enctype changes in sorted order so that the history trace is reliable
and can be tested.
Diffstat (limited to 'perl/Wallet/Object/Keytab.pm')
-rw-r--r-- | perl/Wallet/Object/Keytab.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl/Wallet/Object/Keytab.pm b/perl/Wallet/Object/Keytab.pm index a818f15..f91abff 100644 --- a/perl/Wallet/Object/Keytab.pm +++ b/perl/Wallet/Object/Keytab.pm @@ -428,8 +428,9 @@ sub enctypes_set { # When inserting new enctypes, we unfortunately have to do the # consistency check against the enctypes table ourselves, since SQLite - # doesn't enforce integrity constraints. - for my $enctype (keys %enctypes) { + # doesn't enforce integrity constraints. We do this in sorted order + # to make it easier to test. + for my $enctype (sort keys %enctypes) { $sql = 'select en_name from enctypes where en_name = ?'; my $status = $self->{dbh}->selectrow_array ($sql, undef, $enctype); unless ($status) { |