diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2018-05-14 14:58:56 -0400 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-05-24 09:06:50 +0200 |
commit | e42dcf5283a5537c196147c9a2468ee537b9da7b (patch) | |
tree | 39190749a253fff241b76c416a1fd157a749875b /p11-kit/private.h | |
parent | 6af8234936f805a9c6dceb29a84e73d40ed4b257 (diff) |
Improve const correctness for P11KitUri
This does not improve const for the getters. The reason for this is that
they are usually passed into the PKCS#11 APIs directly and these APIs
are not const correct. Trying to force const correctnesss here would
result in pain for library consumers.
This is an API and ABI compatible change.
Diffstat (limited to 'p11-kit/private.h')
-rw-r--r-- | p11-kit/private.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/p11-kit/private.h b/p11-kit/private.h index 4ef63ea..f8b258e 100644 --- a/p11-kit/private.h +++ b/p11-kit/private.h @@ -60,13 +60,13 @@ const char * _p11_get_progname_unlocked (void); void _p11_set_progname_unlocked (const char *progname); -int p11_match_uri_module_info (CK_INFO_PTR one, - CK_INFO_PTR two); +int p11_match_uri_module_info (CK_INFO const *one, + CK_INFO const *two); -int p11_match_uri_slot_info (CK_SLOT_INFO_PTR one, - CK_SLOT_INFO_PTR two); +int p11_match_uri_slot_info (CK_SLOT_INFO const *one, + CK_SLOT_INFO const *two); -int p11_match_uri_token_info (CK_TOKEN_INFO_PTR one, - CK_TOKEN_INFO_PTR two); +int p11_match_uri_token_info (CK_TOKEN_INFO const *one, + CK_TOKEN_INFO const *two); #endif /* __P11_KIT_PRIVATE_H__ */ |