diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-09-27 23:49:37 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-09-27 23:49:37 +0200 |
commit | c72080cea89cfcd99616da3b39a39b0002191d77 (patch) | |
tree | d49b0fccaf7ea01b670fdfc0b5dc30ee8cf2585b /src/pluto/keys.c | |
parent | 0eff9f65398c1b2ecf8b478302b6f4e3cc717e80 (diff) | |
download | strongswan-c72080cea89cfcd99616da3b39a39b0002191d77.tar.bz2 strongswan-c72080cea89cfcd99616da3b39a39b0002191d77.tar.xz |
abbreviated struct connection by connection_t
Diffstat (limited to 'src/pluto/keys.c')
-rw-r--r-- | src/pluto/keys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pluto/keys.c b/src/pluto/keys.c index d1ea88f68..af494c6c1 100644 --- a/src/pluto/keys.c +++ b/src/pluto/keys.c @@ -97,7 +97,7 @@ secret_t *secrets = NULL; * me and the peer. We match the Id (if none, the IP address). * Failure is indicated by a NULL. */ -static const secret_t* get_secret(const struct connection *c, +static const secret_t* get_secret(const connection_t *c, enum PrivateKeyKind kind, bool asym) { enum { /* bits */ @@ -247,7 +247,7 @@ static const secret_t* get_secret(const struct connection *c, * Failure is indicated by a NULL pointer. * Note: the result is not to be freed by the caller. */ -const chunk_t* get_preshared_secret(const struct connection *c) +const chunk_t* get_preshared_secret(const connection_t *c) { const secret_t *s = get_secret(c, PPK_PSK, FALSE); @@ -308,7 +308,7 @@ private_key_t* get_x509_private_key(const x509cert_t *cert) /* find the appropriate private key (see get_secret). * Failure is indicated by a NULL pointer. */ -private_key_t* get_private_key(const struct connection *c) +private_key_t* get_private_key(const connection_t *c) { const secret_t *s = get_secret(c, PPK_PUBKEY, TRUE); |