]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Remove hs20-osu-client debug file Cert/est-resp.raw
authorJouni Malinen <jouni@codeaurora.org>
Wed, 26 Sep 2018 09:59:41 +0000 (12:59 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 26 Sep 2018 09:59:41 +0000 (12:59 +0300)
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>
hs20/client/est.c
hs20/client/osu_client.c

index 9f1519bf4e4e9baefca5d57f9ae77395af778605..b1aacb8ffbbe5e9f430c1a6132218a73706a35de 100644 (file)
@@ -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) {
index 76ef9c449ddbc6511f0aa1ad565e85743e949a71..b8791b6711e56c2beec49cdde42d4fe503e56607 100644 (file)
@@ -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;