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>
This commit is contained in:
Jouni Malinen 2018-09-26 12:59:41 +03:00 committed by Jouni Malinen
parent f1e2d38166
commit 4d1f7b6856
2 changed files with 0 additions and 7 deletions

View File

@ -666,7 +666,6 @@ int est_simple_enroll(struct hs20_osu_client *ctx, const char *url,
char *buf, *resp, *req, *req2; char *buf, *resp, *req, *req2;
size_t buflen, resp_len, len, pkcs7_len; size_t buflen, resp_len, len, pkcs7_len;
unsigned char *pkcs7; unsigned char *pkcs7;
FILE *f;
char client_cert_buf[200]; char client_cert_buf[200];
char client_key_buf[200]; char client_key_buf[200];
const char *client_cert = NULL, *client_key = NULL; 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; return -1;
} }
wpa_printf(MSG_DEBUG, "EST simpleenroll response: %s", resp); 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); pkcs7 = base64_decode((unsigned char *) resp, resp_len, &pkcs7_len);
if (pkcs7 == NULL) { if (pkcs7 == NULL) {

View 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.b64");
unlink("Cert/est-req.pem"); unlink("Cert/est-req.pem");
unlink("Cert/est-resp.raw");
rmdir("Cert"); rmdir("Cert");
return 0; return 0;