Generic: Fix warnings (fallthrough mosty)

This commit is contained in:
Nicolas Williams
2020-08-05 22:15:23 -05:00
parent c06252745d
commit 7d50445d1b
7 changed files with 10 additions and 6 deletions

View File

@@ -941,7 +941,7 @@ process_stream(krb5_context contextp,
INSIST(gctx.ctx == NULL); INSIST(gctx.ctx == NULL);
gctx.inprogress = 1; gctx.inprogress = 1;
/* FALL THOUGH */ /* FALLTHROUGH */
case RPG_CONTINUE_INIT: { case RPG_CONTINUE_INIT: {
gss_name_t src_name = GSS_C_NO_NAME; gss_name_t src_name = GSS_C_NO_NAME;
krb5_data in; krb5_data in;

View File

@@ -912,7 +912,7 @@ OM_uint32 GSSAPI_CALLCONV _gsskrb5_init_sec_context
time_rec); time_rec);
if (ret != GSS_S_COMPLETE) if (ret != GSS_S_COMPLETE)
break; break;
/* FALL THOUGH */ /* FALLTHROUGH */
case INITIATOR_RESTART: case INITIATOR_RESTART:
ret = init_auth_restart(minor_status, ret = init_auth_restart(minor_status,
cred, cred,

View File

@@ -182,7 +182,7 @@ fill_CMSIdentifier(const hx509_cert cert,
&id->u.subjectKeyIdentifier); &id->u.subjectKeyIdentifier);
if (ret == 0) if (ret == 0)
break; break;
/* FALL THOUGH */ /* FALLTHROUGH */
case CMS_ID_NAME: { case CMS_ID_NAME: {
hx509_name name; hx509_name name;

View File

@@ -37,6 +37,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#define HC_DEPRECATED_CRYPTO
#include "kafs_locl.h" #include "kafs_locl.h"
static int rxkad_derive_des_key(const void *, size_t, char[8]); static int rxkad_derive_des_key(const void *, size_t, char[8]);

View File

@@ -33,6 +33,9 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#undef KRB5_DEPRECATED_FUNCTION
#define KRB5_DEPRECATED_FUNCTION(x)
#include "krb5_locl.h" #include "krb5_locl.h"
#include <assert.h> #include <assert.h>
#include <com_err.h> #include <com_err.h>

View File

@@ -1176,7 +1176,7 @@ krb5_sendto_context(krb5_context context,
break; break;
} }
action = KRB5_SENDTO_KRBHST; action = KRB5_SENDTO_KRBHST;
/* FALLTHOUGH */ /* FALLTHROUGH */
case KRB5_SENDTO_KRBHST: case KRB5_SENDTO_KRBHST:
if (ctx->krbhst == NULL) { if (ctx->krbhst == NULL) {
ret = krb5_krbhst_init_flags(context, realm, type, ret = krb5_krbhst_init_flags(context, realm, type,
@@ -1194,7 +1194,7 @@ krb5_sendto_context(krb5_context context,
handle = heim_retain(ctx->krbhst); handle = heim_retain(ctx->krbhst);
} }
action = KRB5_SENDTO_TIMEOUT; action = KRB5_SENDTO_TIMEOUT;
/* FALLTHOUGH */ /* FALLTHROUGH */
case KRB5_SENDTO_TIMEOUT: case KRB5_SENDTO_TIMEOUT:
/* /*

View File

@@ -471,7 +471,7 @@ heim_digest_generate_challenge(heim_digest_t context)
break; break;
case HEIM_DIGEST_TYPE_AUTO: case HEIM_DIGEST_TYPE_AUTO:
context->type = HEIM_DIGEST_TYPE_RFC2831; context->type = HEIM_DIGEST_TYPE_RFC2831;
/* FALL THOUGH */ /* FALLTHROUGH */
case HEIM_DIGEST_TYPE_RFC2831: case HEIM_DIGEST_TYPE_RFC2831:
asprintf(&challenge, "realm=\"%s\",nonce=\"%s\",qop=\"%s\",algorithm=md5-sess,charset=utf-8,maxbuf=%s", asprintf(&challenge, "realm=\"%s\",nonce=\"%s\",qop=\"%s\",algorithm=md5-sess,charset=utf-8,maxbuf=%s",
context->serverRealm, context->serverNonce, context->serverQOP, context->serverMaxbuf); context->serverRealm, context->serverNonce, context->serverQOP, context->serverMaxbuf);