aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/keys.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-01-04 14:28:57 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-01-04 14:28:57 +0000
commitb4f3cd5ccf529e8a27c7680356b7178ca6a02197 (patch)
treed4468dcbd18a6d8a0a7c9ec8b1c31ee9c131f494 /src/pluto/keys.h
parentac048a8d2ce2a197eea877af8b9fbfb4f6268832 (diff)
downloadstrongswan-b4f3cd5ccf529e8a27c7680356b7178ca6a02197.tar.bz2
strongswan-b4f3cd5ccf529e8a27c7680356b7178ca6a02197.tar.xz
added XAUTH server and client support
Diffstat (limited to 'src/pluto/keys.h')
-rw-r--r--src/pluto/keys.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/pluto/keys.h b/src/pluto/keys.h
index 3e583e495..d1442ce56 100644
--- a/src/pluto/keys.h
+++ b/src/pluto/keys.h
@@ -41,6 +41,11 @@ enum PrivateKeyKind {
PPK_PIN
};
+extern void xauth_defaults(void);
+
+/* forward declaration */
+struct connection;
+
extern const chunk_t *get_preshared_secret(const struct connection *c);
extern err_t unpack_RSA_public_key(RSA_public_key_t *rsa, const chunk_t *pubkey);
extern const RSA_private_key_t *get_RSA_private_key(const struct connection *c);
@@ -86,7 +91,6 @@ extern void delete_public_keys(const struct id *id, enum pubkey_alg alg
extern pubkey_t *reference_key(pubkey_t *pk);
extern void unreference_key(pubkey_t **pkp);
-
extern err_t add_public_key(const struct id *id
, enum dns_auth_level dns_auth_level
, enum pubkey_alg alg
@@ -101,16 +105,6 @@ extern void add_pgp_public_key(pgpcert_t *cert, time_t until
extern void remove_x509_public_key(const x509cert_t *cert);
extern void list_public_keys(bool utc);
-/* XAUTH credentials */
-
-typedef struct {
- chunk_t user_name;
- chunk_t user_password;
-} xauth_t;
-
-extern bool xauth_get_secrect(const xauth_t *xauth_secret);
-extern bool xauth_verify_secret(const xauth_t *xauth_secret);
-
struct gw_info; /* forward declaration of tag (defined in dnskey.h) */
extern void transfer_to_public_keys(struct gw_info *gateways_from_dns
#ifdef USE_KEYRR