iwd.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Andrew Zaborowski <andrew.zaborowski@intel.com>
To: iwd@lists.linux.dev
Subject: [PATCH 2/3] iwd-decrypt-profile: Update storage_init calls
Date: Sat, 12 Nov 2022 02:19:28 +0100	[thread overview]
Message-ID: <20221112011929.785388-2-andrew.zaborowski@intel.com> (raw)
In-Reply-To: <20221112011929.785388-1-andrew.zaborowski@intel.com>

---
 tools/iwd-decrypt-profile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/iwd-decrypt-profile.c b/tools/iwd-decrypt-profile.c
index e71b56b4..06a9f97b 100644
--- a/tools/iwd-decrypt-profile.c
+++ b/tools/iwd-decrypt-profile.c
@@ -90,7 +90,7 @@ static bool secret_from_file(const char *file)
 	if (data == MAP_FAILED)
 		return false;
 
-	r = storage_init(data, st.st_size);
+	r = storage_key_init(data, st.st_size);
 
 	munmap(data, st.st_size);
 
@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
 	}
 
 	if (pass) {
-		if (!storage_init((const uint8_t *)pass, strlen(pass)))
+		if (!storage_key_init((const uint8_t *)pass, strlen(pass)))
 			goto failed;
 	} else if (!secret_from_file(file))
 		goto failed;
-- 
2.34.1


  reply	other threads:[~2022-11-12  1:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-12  1:19 [PATCH 1/3] storage: Maintain the tls session cache object Andrew Zaborowski
2022-11-12  1:19 ` Andrew Zaborowski [this message]
2022-11-12  1:19 ` [PATCH 3/3] eap-tls: Add session caching Andrew Zaborowski
2022-11-14 20:03 ` [PATCH 1/3] storage: Maintain the tls session cache object Denis Kenzior
2022-11-15  1:29   ` Andrew Zaborowski
2022-11-15 19:41     ` Denis Kenzior
2022-11-16  2:04       ` Andrew Zaborowski
2022-11-16  2:33         ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221112011929.785388-2-andrew.zaborowski@intel.com \
    --to=andrew.zaborowski@intel.com \
    --cc=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).