hs20-osu-client: Use size_t for certificate components

This avoids a theoretical integer overflow with 16-bit unsigned int
should a certificate be encoded with more that 65535 friendly names or
icons.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2020-03-22 18:22:27 +02:00
parent 913220cbb8
commit 3f45b8daeb
2 changed files with 8 additions and 8 deletions

View file

@ -28,11 +28,11 @@ struct http_logo {
struct http_cert {
char **dnsname;
unsigned int num_dnsname;
size_t num_dnsname;
struct http_othername *othername;
unsigned int num_othername;
size_t num_othername;
struct http_logo *logo;
unsigned int num_logo;
size_t num_logo;
};
int soap_init_client(struct http_ctx *ctx, const char *address,