Re: [PATCH v1 2/9] certs: Make blacklist_vet_description() more strict

2020-12-11 Thread Mickaël Salaün
On 04/12/2020 15:09, David Howells wrote: > Mickaël Salaün wrote: > >> +if (*desc) >> +/* The hash is greater than MAX_HASH_LEN. */ >> +return -EINVAL; > > -ENOPKG might be better. It's not that the string is invalid, it's just that > it's unsupported at the momen

Re: [PATCH v1 2/9] certs: Make blacklist_vet_description() more strict

2020-12-04 Thread Mickaël Salaün
On 04/12/2020 15:09, David Howells wrote: > Mickaël Salaün wrote: > >> +if (*desc) >> +/* The hash is greater than MAX_HASH_LEN. */ >> +return -EINVAL; > > -ENOPKG might be better. It's not that the string is invalid, it's just that > it's unsupported at the momen

Re: [PATCH v1 2/9] certs: Make blacklist_vet_description() more strict

2020-12-04 Thread David Howells
Mickaël Salaün wrote: > + if (*desc) > + /* The hash is greater than MAX_HASH_LEN. */ > + return -EINVAL; -ENOPKG might be better. It's not that the string is invalid, it's just that it's unsupported at the moment. David