krb5: Fix non‐RC4 build
The function _krb5_usage2arcfour() is only declared if Heimdal is built with RC4. Put calls to this function behind #ifdef guards so that the build can succeed.
This commit is contained in:
committed by
Nico Williams
parent
31c514e3b2
commit
b7f4f62dfa
@@ -608,8 +608,12 @@ krb5_create_checksum(krb5_context context,
|
||||
}
|
||||
|
||||
if (arcfour_checksum_p(ct, crypto)) {
|
||||
#ifdef HEIM_ARCFOUR
|
||||
keyusage = usage;
|
||||
_krb5_usage2arcfour(context, &keyusage);
|
||||
#else
|
||||
return KRB5_PROG_SUMTYPE_NOSUPP;
|
||||
#endif /* HEIM_ARCFOUR */
|
||||
} else
|
||||
keyusage = CHECKSUM_USAGE(usage);
|
||||
|
||||
@@ -738,8 +742,12 @@ krb5_verify_checksum(krb5_context context,
|
||||
}
|
||||
|
||||
if (arcfour_checksum_p(ct, crypto)) {
|
||||
#ifdef HEIM_ARCFOUR
|
||||
keyusage = usage;
|
||||
_krb5_usage2arcfour(context, &keyusage);
|
||||
#else
|
||||
return KRB5_PROG_SUMTYPE_NOSUPP;
|
||||
#endif /* HEIM_ARCFOUR */
|
||||
} else
|
||||
keyusage = CHECKSUM_USAGE(usage);
|
||||
|
||||
@@ -2067,8 +2075,12 @@ krb5_create_checksum_iov(krb5_context context,
|
||||
}
|
||||
|
||||
if (arcfour_checksum_p(ct, crypto)) {
|
||||
#ifdef HEIM_ARCFOUR
|
||||
keyusage = usage;
|
||||
_krb5_usage2arcfour(context, &keyusage);
|
||||
#else
|
||||
return KRB5_PROG_SUMTYPE_NOSUPP;
|
||||
#endif /* HEIM_ARCFOUR */
|
||||
} else
|
||||
keyusage = CHECKSUM_USAGE(usage);
|
||||
|
||||
@@ -2134,8 +2146,12 @@ krb5_verify_checksum_iov(krb5_context context,
|
||||
}
|
||||
|
||||
if (arcfour_checksum_p(ct, crypto)) {
|
||||
#ifdef HEIM_ARCFOUR
|
||||
keyusage = usage;
|
||||
_krb5_usage2arcfour(context, &keyusage);
|
||||
#else
|
||||
return KRB5_PROG_SUMTYPE_NOSUPP;
|
||||
#endif /* HEIM_ARCFOUR */
|
||||
} else
|
||||
keyusage = CHECKSUM_USAGE(usage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user