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:
parent
913220cbb8
commit
3f45b8daeb
2 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue