From: Ben Kaduk Date: Wed, 27 Jun 2012 21:02:01 +0000 (-0400) Subject: Clean up const usage for supported_kdf_alg_ids X-Git-Tag: krb5-1.11-alpha1~457 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a586c7e0f4f54eb63c53fccb0988dda4c9bc6b8;p=thirdparty%2Fkrb5.git Clean up const usage for supported_kdf_alg_ids The previous declaration had redundant consts and missed making the actual pointers stored in the array const. --- diff --git a/src/plugins/preauth/pkinit/pkinit_crypto.h b/src/plugins/preauth/pkinit/pkinit_crypto.h index e81e94fd9d..a3cecc4847 100644 --- a/src/plugins/preauth/pkinit/pkinit_crypto.h +++ b/src/plugins/preauth/pkinit/pkinit_crypto.h @@ -640,6 +640,6 @@ extern const size_t krb5_pkinit_sha512_oid_len; * supported by this implementation. The order of this array controls * the order in which the server will pick. */ -extern const krb5_data const *supported_kdf_alg_ids[] ; +extern krb5_data const * const supported_kdf_alg_ids[]; #endif /* _PKINIT_CRYPTO_H */ diff --git a/src/plugins/preauth/pkinit/pkinit_kdf_constants.c b/src/plugins/preauth/pkinit/pkinit_kdf_constants.c index 55e67cd3a3..9d4f7d075e 100644 --- a/src/plugins/preauth/pkinit/pkinit_kdf_constants.c +++ b/src/plugins/preauth/pkinit/pkinit_kdf_constants.c @@ -64,7 +64,7 @@ oid_as_data(sha256_id, krb5_pkinit_sha256_oid); oid_as_data(sha512_id, krb5_pkinit_sha512_oid); #undef oid_as_data -const krb5_data const *supported_kdf_alg_ids[] = { +krb5_data const * const supported_kdf_alg_ids[] = { &sha256_id, &sha1_id, &sha512_id,