aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/states/responder_init.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-23 07:22:43 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-23 07:22:43 +0000
commit0c6c2dfbec025163d53461a22c7943ef172fc04a (patch)
tree258d1a5ad8bccd9c39115b5ecb19a5460fbb920f /Source/charon/states/responder_init.c
parentdcacedf75543d4807743d550277c788173087caa (diff)
downloadstrongswan-0c6c2dfbec025163d53461a22c7943ef172fc04a.tar.bz2
strongswan-0c6c2dfbec025163d53461a22c7943ef172fc04a.tar.xz
- added compution of secrets
Diffstat (limited to 'Source/charon/states/responder_init.c')
-rw-r--r--Source/charon/states/responder_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/charon/states/responder_init.c b/Source/charon/states/responder_init.c
index 7a2d3854d..1f8c1bd74 100644
--- a/Source/charon/states/responder_init.c
+++ b/Source/charon/states/responder_init.c
@@ -334,6 +334,15 @@ static status_t process_message(private_responder_init_t *this, message_t *messa
this->logger->log(this->logger, ERROR, "Could not create nonce!");
return OUT_OF_RES;
}
+
+ status = this->ike_sa->compute_secrets(this->ike_sa,shared_secret,this->received_nonce, this->sent_nonce);
+ if (status != SUCCESS)
+ {
+ /* secrets could not be computed */
+ this->logger->log(this->logger, ERROR | MORE, "Secrets could not be computed!");
+ return status;
+ }
+
/* set up the reply */