HomeFreeBSD

Fix enum warning in heimdal

Description

Fix enum warning in heimdal

This fixes a clang 19 warning:

crypto/heimdal/lib/krb5/deprecated.c:75:17: error: comparison of different enumeration types ('krb5_keytype' (aka 'enum ENCTYPE') and 'enum krb5_keytype_old') [-Werror,-Wenum-compare]

75 |     if (keytype != KEYTYPE_DES || context->etypes_des == NULL)
   |         ~~~~~~~ ^  ~~~~~~~~~~~

In https://github.com/heimdal/heimdal/commit/3bebbe5323 this was solved
by adding a cast. That commit is rather large, so I'm only applying the
one-liner here.

MFC after: 3 days

(cherry picked from commit 6f25b46721a18cf4f036d041e7e5d275800a00b3)

Details

Provenance
dimAuthored on Jul 30 2024, 6:31 PM
Parents
rG4401d7b362b1: tcp: vnetify sysctl variables ack_war_timewindow and ack_war_cnt
Branches
Unknown
Tags
Unknown