diff options
Diffstat (limited to 'src/lib/gssapi')
-rw-r--r-- | src/lib/gssapi/krb5/k5sealv3.c | 5 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/k5sealv3iov.c | 3 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/util_crypt.c | 11 |
3 files changed, 9 insertions, 10 deletions
diff --git a/src/lib/gssapi/krb5/k5sealv3.c b/src/lib/gssapi/krb5/k5sealv3.c index 56a4a4462d..b12284fb19 100644 --- a/src/lib/gssapi/krb5/k5sealv3.c +++ b/src/lib/gssapi/krb5/k5sealv3.c @@ -320,9 +320,8 @@ gss_krb5int_unseal_token_v3(krb5_context *contextptr, krb5_keyblock *key; krb5_cksumtype cksumtype; - if(ctx->big_endian != 0) - goto defective; - + if (ctx->big_endian != 0) + goto defective; if (qop_state) *qop_state = GSS_C_QOP_DEFAULT; diff --git a/src/lib/gssapi/krb5/k5sealv3iov.c b/src/lib/gssapi/krb5/k5sealv3iov.c index 879d99748d..e39665febe 100644 --- a/src/lib/gssapi/krb5/k5sealv3iov.c +++ b/src/lib/gssapi/krb5/k5sealv3iov.c @@ -298,8 +298,7 @@ gss_krb5int_unseal_v3_iov(krb5_context context, int conf_flag = 0; if (ctx->big_endian != 0) - return GSS_S_DEFECTIVE_TOKEN; - + return GSS_S_DEFECTIVE_TOKEN; if (qop_state != NULL) *qop_state = GSS_C_QOP_DEFAULT; diff --git a/src/lib/gssapi/krb5/util_crypt.c b/src/lib/gssapi/krb5/util_crypt.c index e93acb9ca2..e2f306e979 100644 --- a/src/lib/gssapi/krb5/util_crypt.c +++ b/src/lib/gssapi/krb5/util_crypt.c @@ -99,9 +99,10 @@ kg_setup_keys(krb5_context context, *cksumtype = 0; ctx->proto = 0; + if (ctx->enc == NULL) { - ctx->signalg = -1; - ctx->sealalg = -1; + ctx->signalg = -1; + ctx->sealalg = -1; } code = krb5int_accessor(&kaccess, KRB5INT_ACCESS_VERSION); @@ -109,9 +110,9 @@ kg_setup_keys(krb5_context context, return code; code = (*kaccess.krb5int_c_mandatory_cksumtype)(context, subkey->enctype, - cksumtype); + cksumtype); if (code != 0) - return code; + return code; switch (subkey->enctype) { case ENCTYPE_DES_CBC_MD5: @@ -154,7 +155,7 @@ kg_setup_keys(krb5_context context, break; default: ctx->proto = 1; - + break; } return 0; |