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

Unified Diff: plugins/crypto_descbc.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 | « include/wifi.h ('k') | plugins/crypto_rot47.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugins/crypto_descbc.c
diff --git a/plugins/crypto_descbc.c b/plugins/crypto_descbc.c
index 604af65a0e7b5c49ed6f50a52bd5f0a28fd012d6..e2c80a9baccc7269136dbb84199f8cbbe01c0680 100644
--- a/plugins/crypto_descbc.c
+++ b/plugins/crypto_descbc.c
@@ -43,10 +43,8 @@ static int version_prefix_length = 3;
static char sentinel_suffix[] = "[ok]";
static int sentinel_length = 4;
-static char *descbc_encrypt(const char *profile_name,
- const char *key, const char *value);
-static char *descbc_decrypt(const char *profile_name,
- const char *key, const char *value);
+static char *descbc_encrypt(const char *key, const char *value);
+static char *descbc_decrypt(const char *key, const char *value);
static struct connman_crypto crypto_descbc = {
.name = "des-cbc",
@@ -55,8 +53,7 @@ static struct connman_crypto crypto_descbc = {
.decrypt_keyvalue = descbc_decrypt,
};
-static char *descbc_encrypt(const char *profile_name,
- const char *key, const char *value)
+static char *descbc_encrypt(const char *key, const char *value)
{
char *ciphertext = NULL;
char *b64_ciphertext = NULL;
@@ -120,8 +117,7 @@ static char *descbc_encrypt(const char *profile_name,
return versioned_ciphertext;
}
-static char *descbc_decrypt(const char *profile_name,
- const char *key, const char *value)
+static char *descbc_decrypt(const char *key, const char *value)
{
gsize ciphertext_size;
int rv;
« no previous file with comments | « include/wifi.h ('k') | plugins/crypto_rot47.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698