switch to kcmuuid_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24018 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -484,12 +484,12 @@ kcm_ccache_store_cred(krb5_context context, | |||||||
| struct kcm_creds * | struct kcm_creds * | ||||||
| kcm_ccache_find_cred_uuid(krb5_context context, | kcm_ccache_find_cred_uuid(krb5_context context, | ||||||
| 			  kcm_ccache ccache, | 			  kcm_ccache ccache, | ||||||
| 			  uuid_t uuid) | 			  kcmuuid_t uuid) | ||||||
| { | { | ||||||
|     struct kcm_creds *c; |     struct kcm_creds *c; | ||||||
|  |  | ||||||
|     for (c = ccache->creds; c != NULL; c = c->next) |     for (c = ccache->creds; c != NULL; c = c->next) | ||||||
| 	if (uuid_compare(c->uuid, uuid) == 0) | 	if (memcmp(c->uuid, uuid, sizeof(c->uuid)) == 0) | ||||||
| 	    return c; | 	    return c; | ||||||
|  |  | ||||||
|     return NULL; |     return NULL; | ||||||
| @@ -515,7 +515,7 @@ kcm_ccache_store_cred_internal(krb5_context context, | |||||||
| 	return KRB5_CC_NOMEM; | 	return KRB5_CC_NOMEM; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     uuid_generate((*c)->uuid); |     RAND_bytes((*c)->uuid, sizeof((*c)->uuid)); | ||||||
|  |  | ||||||
|     *credp = &(*c)->cred; |     *credp = &(*c)->cred; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand