------------------------------------------------------------ revno: 5362 committer: Henrik Ziegeldorf <henrik.ziegeldorf@xxxxxxxxxxxxxx> branch nick: ec timestamp: Sat 2011-01-15 12:39:33 +0100 message: Const correctness for function ecdsa_to_hip_endpoint modified: lib/core/builder.c lib/core/builder.h -- lp:~hipl-core/hipl/ecc https://code.launchpad.net/~hipl-core/hipl/ecc Your team HIPL core team is subscribed to branch lp:~hipl-core/hipl/ecc. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/ecc/+edit-subscription
=== modified file 'lib/core/builder.c' --- lib/core/builder.c 2011-01-15 11:21:37 +0000 +++ lib/core/builder.c 2011-01-15 11:39:33 +0000 @@ -3717,9 +3717,9 @@ * @param hostname host name for the EC key * @return zero on success and negative on failure */ -int ecdsa_to_hip_endpoint(const EC_KEY *ecdsa, - struct endpoint_hip **endpoint, - se_hip_flags endpoint_flags, +int ecdsa_to_hip_endpoint(const EC_KEY *const ecdsa, + struct endpoint_hip **const endpoint, + const se_hip_flags endpoint_flags, const char *const hostname) { int err = 0; === modified file 'lib/core/builder.h' --- lib/core/builder.h 2011-01-14 16:33:24 +0000 +++ lib/core/builder.h 2011-01-15 11:39:33 +0000 @@ -236,8 +236,8 @@ se_hip_flags endpoint_flags, const char *const hostname); int ecdsa_to_hip_endpoint(const EC_KEY *const ecdsa, - struct endpoint_hip **endpoint, - se_hip_flags endpoint_flags, + struct endpoint_hip **const endpoint, + const se_hip_flags endpoint_flags, const char *const hostname); int hip_any_key_to_hit(const void *const any_key, hip_hit_t *const hit,