aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/keys.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-03-28 11:48:14 +0000
committerMartin Willi <martin@strongswan.org>2008-03-28 11:48:14 +0000
commitdca40a94830f44e212f8a40a20f30a158610805e (patch)
tree7de4a5ad3939c69078cba6a3cc51b2c7bdcbc452 /src/pluto/keys.c
parent7539b1d1aa7b04d595ce83af96b46ac11132a690 (diff)
downloadstrongswan-dca40a94830f44e212f8a40a20f30a158610805e.tar.bz2
strongswan-dca40a94830f44e212f8a40a20f30a158610805e.tar.xz
fixed all pluto compiler warnings
Diffstat (limited to 'src/pluto/keys.c')
-rw-r--r--src/pluto/keys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pluto/keys.c b/src/pluto/keys.c
index edda8add0..0d2efc9ca 100644
--- a/src/pluto/keys.c
+++ b/src/pluto/keys.c
@@ -83,7 +83,7 @@ static pubkey_t*
allocate_RSA_public_key(const cert_t cert)
{
pubkey_t *pk = alloc_thing(pubkey_t, "pubkey");
- chunk_t e, n;
+ chunk_t e = empty_chunk, n = empty_chunk;
switch (cert.type)
{
@@ -335,7 +335,7 @@ get_x509_private_key(const x509cert_t *cert)
{
secret_t *s;
const RSA_private_key_t *pri = NULL;
- const cert_t c = {CERT_X509_SIGNATURE, {cert}};
+ const cert_t c = {CERT_X509_SIGNATURE, {(x509cert_t*)cert}};
pubkey_t *pubkey = allocate_RSA_public_key(c);
@@ -1473,7 +1473,7 @@ add_pgp_public_key(pgpcert_t *cert , time_t until
void
remove_x509_public_key(const x509cert_t *cert)
{
- const cert_t c = {CERT_X509_SIGNATURE, {cert}};
+ const cert_t c = {CERT_X509_SIGNATURE, {(x509cert_t*)cert}};
pubkey_list_t *p, **pp;
pubkey_t *revoked_pk;