aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-09-26 09:59:41 (GMT)
committerJouni Malinen <j@w1.fi>2018-09-26 09:59:41 (GMT)
commit4d1f7b6856f057ee69110a3998e0ab6c5e563a0c (patch)
treecf7269a26f2713ff8176f0f339a3eaeba7b67cc0 /hs20
parentf1e2d3816625abcc8ec81c9783a853d5072e4ed1 (diff)
downloadhostap-4d1f7b6856f057ee69110a3998e0ab6c5e563a0c.zip
hostap-4d1f7b6856f057ee69110a3998e0ab6c5e563a0c.tar.gz
hostap-4d1f7b6856f057ee69110a3998e0ab6c5e563a0c.tar.bz2
HS 2.0: Remove hs20-osu-client debug file Cert/est-resp.raw
This was used during initial EST development time testing, but the same information is available in the debug log and since this separate file is deleted automatically, just remove its generation completely to simplify implementation. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/est.c6
-rw-r--r--hs20/client/osu_client.c1
2 files changed, 0 insertions, 7 deletions
diff --git a/hs20/client/est.c b/hs20/client/est.c
index 9f1519b..b1aacb8 100644
--- a/hs20/client/est.c
+++ b/hs20/client/est.c
@@ -666,7 +666,6 @@ int est_simple_enroll(struct hs20_osu_client *ctx, const char *url,
char *buf, *resp, *req, *req2;
size_t buflen, resp_len, len, pkcs7_len;
unsigned char *pkcs7;
- FILE *f;
char client_cert_buf[200];
char client_key_buf[200];
const char *client_cert = NULL, *client_key = NULL;
@@ -721,11 +720,6 @@ int est_simple_enroll(struct hs20_osu_client *ctx, const char *url,
return -1;
}
wpa_printf(MSG_DEBUG, "EST simpleenroll response: %s", resp);
- f = fopen("Cert/est-resp.raw", "w");
- if (f) {
- fwrite(resp, resp_len, 1, f);
- fclose(f);
- }
pkcs7 = base64_decode((unsigned char *) resp, resp_len, &pkcs7_len);
if (pkcs7 == NULL) {
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 76ef9c4..b8791b6 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -293,7 +293,6 @@ static int process_est_cert(struct hs20_osu_client *ctx, xml_node_t *cert,
unlink("Cert/est-req.b64");
unlink("Cert/est-req.pem");
- unlink("Cert/est-resp.raw");
rmdir("Cert");
return 0;