aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-02-04 21:47:47 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-04 22:24:49 (GMT)
commit2088ecb9707f33f31accadead473dc1fb1eaf834 (patch)
tree5a91bdb1eeb7aa5c6e2bd54a737be43a8cb5ddf2
parent0b905c8a87b53e0942506a8aeaae47869af91727 (diff)
downloadhostap-2088ecb9707f33f31accadead473dc1fb1eaf834.zip
hostap-2088ecb9707f33f31accadead473dc1fb1eaf834.tar.gz
hostap-2088ecb9707f33f31accadead473dc1fb1eaf834.tar.bz2
OSU: Add debug printing of more LogotypeExtn fields
Couple of the image info fields were not printed previously in debug log. Add those to make this more complete. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/utils/http_curl.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/utils/http_curl.c b/src/utils/http_curl.c
index 9c49680..bf32ab8 100644
--- a/src/utils/http_curl.c
+++ b/src/utils/http_curl.c
@@ -644,13 +644,25 @@ static void i2r_LogotypeImageInfo(LogotypeImageInfo *info, BIO *out, int indent)
} else {
BIO_printf(out, "%*stype: default (1)\n", indent, "");
}
+ val = ASN1_INTEGER_get(info->fileSize);
+ BIO_printf(out, "%*sfileSize: %ld\n", indent, "", val);
val = ASN1_INTEGER_get(info->xSize);
BIO_printf(out, "%*sxSize: %ld\n", indent, "", val);
val = ASN1_INTEGER_get(info->ySize);
BIO_printf(out, "%*sySize: %ld\n", indent, "", val);
if (info->resolution) {
- BIO_printf(out, "%*sresolution\n", indent, "");
- /* TODO */
+ BIO_printf(out, "%*sresolution [%d]\n", indent, "",
+ info->resolution->type);
+ switch (info->resolution->type) {
+ case 0:
+ val = ASN1_INTEGER_get(info->resolution->d.numBits);
+ BIO_printf(out, "%*snumBits: %ld\n", indent, "", val);
+ break;
+ case 1:
+ val = ASN1_INTEGER_get(info->resolution->d.tableSize);
+ BIO_printf(out, "%*stableSize: %ld\n", indent, "", val);
+ break;
+ }
}
if (info->language) {
BIO_printf(out, "%*slanguage: ", indent, "");