aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypto/krb/string_to_enctype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/krb/string_to_enctype.c')
-rw-r--r--src/lib/crypto/krb/string_to_enctype.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/lib/crypto/krb/string_to_enctype.c b/src/lib/crypto/krb/string_to_enctype.c
index 159c36b..25091fe 100644
--- a/src/lib/crypto/krb/string_to_enctype.c
+++ b/src/lib/crypto/krb/string_to_enctype.c
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright (C) 1998 by the FundsXpress, INC.
*
@@ -36,21 +37,21 @@ krb5_string_to_enctype(char *string, krb5_enctype *enctypep)
const struct krb5_keytypes *ktp;
for (i = 0; i < krb5int_enctypes_length; i++) {
- ktp = &krb5int_enctypes_list[i];
- if (strcasecmp(ktp->name, string) == 0) {
- *enctypep = ktp->etype;
- return 0;
- }
+ ktp = &krb5int_enctypes_list[i];
+ if (strcasecmp(ktp->name, string) == 0) {
+ *enctypep = ktp->etype;
+ return 0;
+ }
#define MAX_ALIASES (sizeof(ktp->aliases) / sizeof(ktp->aliases[0]))
- for (j = 0; j < MAX_ALIASES; j++) {
- alias = ktp->aliases[j];
- if (alias == NULL)
- break;
- if (strcasecmp(alias, string) == 0) {
- *enctypep = ktp->etype;
- return 0;
- }
- }
+ for (j = 0; j < MAX_ALIASES; j++) {
+ alias = ktp->aliases[j];
+ if (alias == NULL)
+ break;
+ if (strcasecmp(alias, string) == 0) {
+ *enctypep = ktp->etype;
+ return 0;
+ }
+ }
}
return EINVAL;