]> git.michaelhowe.org Git - packages/o/openafs.git/commit
crypto: Use our strcasecmp in kernel
authorAndrew Deason <adeason@sinenomine.net>
Wed, 25 Jul 2012 20:48:34 +0000 (15:48 -0500)
committerDerrick Brashear <shadow@dementix.org>
Thu, 26 Jul 2012 17:49:27 +0000 (10:49 -0700)
commitcf03e0a4748e122fd1bf2ec9d00e539b70f3eb3f
tree36a045aace79b1ffe67b94e43c60f8266711755f
parent97e241fdc68e0759d4b2762ee050f8bdde57a2e0
crypto: Use our strcasecmp in kernel

A few pieces of heimdal we use in the kernel call strcasecmp
(hcrypto/evp.c, krb5/crypto.c). The strcasecmp function does not exist
in all kernels (specifically, it does not exist in at least Linux 2.4,
2.6.9, and probably not on Solaris pre-10). Since we have our own copy
of strcasecmp (called afs_strcasecmp), just use that for now.

Ideally we would have some kind of configure test for detecting the
presence of the function in the kernel, and use the roken
implementation when we don't. We currently have the framework for
neither of those in place at the moment, though, so just get by with
this for now.

Change-Id: Ia96b17596da6cb168c80c92486fa049c05205da4
Reviewed-on: http://gerrit.openafs.org/7881
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/crypto/hcrypto/kernel/config.h