Skip to content

Commit

Permalink
rename cleanup_enctypes to cleanup_enctype
Browse files Browse the repository at this point in the history
  • Loading branch information
mproehl committed Apr 12, 2015
1 parent 1376954 commit 0385d8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion msktkrb5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void cleanup_keytab(msktutil_flags *flags)
// compared directly. As a workaround we clean the
// current entry only if its time stamp and
// newest_timestamp differ by more than 2 seconds.
if ((cursor.enctype() == flags->cleanup_enctypes) ||
if ((cursor.enctype() == flags->cleanup_enctype) ||
((ttNow - cursor.timestamp() >= flags->cleanup_days * 60 * 60 * 24) &&
(flags->cleanup_days != -1) &&
(abs(newest_timestamp - cursor.timestamp()) >= 2))) {
Expand Down
6 changes: 3 additions & 3 deletions msktutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ int main(int argc, char *argv [])

if (!strcmp(argv[i], "--remove-enctype")) {
if (++i < argc) {
exec->flags->cleanup_enctypes = atoi(argv[i]);
exec->flags->cleanup_enctype = atoi(argv[i]);
} else {
fprintf(stderr, "Error: No number given after '%s'\n", argv[i - 1]);
goto error;
Expand Down Expand Up @@ -938,7 +938,7 @@ int main(int argc, char *argv [])

if (exec->mode == MODE_CLEANUP &&
exec->flags->cleanup_days == -1 &&
exec->flags->cleanup_enctypes == VALUE_IGNORE) {
exec->flags->cleanup_enctype == VALUE_IGNORE) {
fprintf(stderr, "Error: cleanup mode needs --remove-old or --remove-enctype\n");
goto error;
}
Expand Down Expand Up @@ -991,7 +991,7 @@ msktutil_flags::msktutil_flags() :
auto_update_interval(30),
kvno(0),
cleanup_days(-1),
cleanup_enctypes(VALUE_IGNORE)
cleanup_enctype(VALUE_IGNORE)
{}

msktutil_flags::~msktutil_flags()
Expand Down
2 changes: 1 addition & 1 deletion msktutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct msktutil_flags {
int auto_update_interval;
krb5_kvno kvno;
int cleanup_days;
int cleanup_enctypes;
int cleanup_enctype;
msktutil_flags();
~msktutil_flags();
};
Expand Down

0 comments on commit 0385d8f

Please sign in to comment.