Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: src/crypto.c

Issue 6659006: flimflam: add support for multiple profiles (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: more ers comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/connman.h ('k') | src/device.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crypto.c
diff --git a/src/crypto.c b/src/crypto.c
index 697162631cdd2560d010d2d45ed73a67c025066f..b2b4c0b5d1f4496204acc3840e1777f0e964250e 100644
--- a/src/crypto.c
+++ b/src/crypto.c
@@ -76,8 +76,7 @@ void connman_crypto_unregister(struct connman_crypto *crypto)
crypto_list = g_slist_remove(crypto_list, crypto);
}
-char *__connman_crypto_decrypt_keyvalue(const char *profile_name,
- const char *key, const char *value)
+char *__connman_crypto_decrypt_keyvalue(const char *key, const char *value)
{
GSList *list;
@@ -91,7 +90,7 @@ char *__connman_crypto_decrypt_keyvalue(const char *profile_name,
* The prefix matches, so this plugin *must* be the
* one that knows how to decrypt.
*/
- return crypto->decrypt_keyvalue(profile_name, key,
+ return crypto->decrypt_keyvalue(key,
&value[crypto->prefix_size]);
}
}
@@ -103,8 +102,7 @@ char *__connman_crypto_decrypt_keyvalue(const char *profile_name,
return g_strdup(value);
}
-char *__connman_crypto_encrypt_keyvalue(const char *profile_name,
- const char *key, const char *value)
+char *__connman_crypto_encrypt_keyvalue(const char *key, const char *value)
{
GSList *list;
char *rv = NULL;
@@ -114,8 +112,7 @@ char *__connman_crypto_encrypt_keyvalue(const char *profile_name,
for (list = crypto_list; list; list = list->next) {
struct connman_crypto *crypto = list->data;
- char *ciphertext = crypto->encrypt_keyvalue(
- profile_name, key, value);
+ char *ciphertext = crypto->encrypt_keyvalue(key, value);
if (ciphertext != NULL) {
rv = g_strdup_printf("%s%s", crypto->prefix,
« no previous file with comments | « src/connman.h ('k') | src/device.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698