summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2008-08-10 22:38:17 +0200
committerGravatar Matt Colyer2008-08-11 09:32:59 -0700
commit2f2b8d7ea552cbdb5a2cf17ceba364681350f3bb (patch)
tree3d02c48c43bd1fce5759aa06daac22a12e1db761 /src/lockdown.c
parent020d7c23b17956098379140f1f0047ae8e78df1b (diff)
downloadlibplist-2f2b8d7ea552cbdb5a2cf17ceba364681350f3bb.tar.gz
libplist-2f2b8d7ea552cbdb5a2cf17ceba364681350f3bb.tar.bz2
Fix warnings about unused variables
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/lockdown.c')
-rw-r--r--src/lockdown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 480a653..78ab6a9 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -356,8 +356,9 @@ int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char *
/* first decode base64 public_key */
gnutls_datum_t pem_pub_key;
- pem_pub_key.data = g_base64_decode (public_key_b64, &pem_pub_key.size);
-
+ gsize decoded_size;
+ pem_pub_key.data = g_base64_decode (public_key_b64, &decoded_size);
+ pem_pub_key.size = decoded_size;
/* now decode the PEM encoded key */
gnutls_datum_t der_pub_key;
@@ -396,7 +397,6 @@ int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char *
if (1 == ret && 0 != modulus.size && 0 != exponent.size) {
gnutls_global_init();
- int effthis = 0;
gnutls_datum_t essentially_null = {strdup("abababababababab"), strlen("abababababababab")};
gnutls_x509_privkey_t fake_privkey, root_privkey;