Skip to content

Commit

Permalink
Clean up const usage for supported_kdf_alg_ids
Browse files Browse the repository at this point in the history
The previous declaration had redundant consts and missed making
the actual pointers stored in the array const.
  • Loading branch information
kaduk committed Jul 3, 2012
1 parent e8d1c9c commit 9a586c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/preauth/pkinit/pkinit_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/plugins/preauth/pkinit/pkinit_kdf_constants.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9a586c7

Please sign in to comment.