From: Jouni Malinen Date: Wed, 26 Sep 2018 09:59:41 +0000 (+0300) Subject: HS 2.0: Remove hs20-osu-client debug file Cert/est-resp.raw X-Git-Tag: hostap_2_7~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d1f7b6856f057ee69110a3998e0ab6c5e563a0c;p=thirdparty%2Fhostap.git 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 --- diff --git a/hs20/client/est.c b/hs20/client/est.c index 9f1519bf4..b1aacb8ff 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 76ef9c449..b8791b671 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;