aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-03-08 19:44:14 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-03-08 19:44:14 +0000
commit162afac75fbc01821a9026066768b820a85e8c7f (patch)
tree36e83ff00fedfb886edbfea2410e555511a0457b /src
parent33d108de22953ea9fe30d6171ad7c459ccaa6e94 (diff)
downloadstrongswan-162afac75fbc01821a9026066768b820a85e8c7f.tar.bz2
strongswan-162afac75fbc01821a9026066768b820a85e8c7f.tar.xz
fixed call of add_auth_certificate()
Diffstat (limited to 'src')
-rwxr-xr-xsrc/charon/config/credentials/credential_store.h9
-rw-r--r--src/charon/config/credentials/local_credential_store.c7
2 files changed, 9 insertions, 7 deletions
diff --git a/src/charon/config/credentials/credential_store.h b/src/charon/config/credentials/credential_store.h
index 9c10f95c4..378619691 100755
--- a/src/charon/config/credentials/credential_store.h
+++ b/src/charon/config/credentials/credential_store.h
@@ -157,11 +157,12 @@ struct credential_store_t {
/**
* @brief If an authority certificate does not already exists in the credential store then add it.
*
- * @param this calling object
- * @param cert authority certificate to be added
- * @return pointer to the added or already existing certificate
+ * @param this calling object
+ * @param cert authority certificate to be added
+ * @param auth_flag authority flags to add to the certificate
+ * @return pointer to the added or already existing certificate
*/
- x509_t* (*add_auth_certificate) (credential_store_t *this, x509_t *cert, u_int authority_flag);
+ x509_t* (*add_auth_certificate) (credential_store_t *this, x509_t *cert, u_int auth_flag);
/**
* @brief If a ca info record does not already exists in the credential store then add it.
diff --git a/src/charon/config/credentials/local_credential_store.c b/src/charon/config/credentials/local_credential_store.c
index 97146d4eb..1caa33b67 100644
--- a/src/charon/config/credentials/local_credential_store.c
+++ b/src/charon/config/credentials/local_credential_store.c
@@ -744,11 +744,12 @@ static x509_t* add_end_certificate(private_local_credential_store_t *this, x509_
}
/**
- * Implements local_credential_store_t.add_ca_certificate
+ * Implements local_credential_store_t.add_auth_certificate
*/
-static x509_t* add_auth_certificate(private_local_credential_store_t *this, x509_t *cert)
+static x509_t* add_auth_certificate(private_local_credential_store_t *this, x509_t *cert, u_int auth_flags)
{
- return add_certificate(this->auth_certs, cert);
+ cert->add_authority_flags(cert, auth_flags);
+ return add_certificate(this->auth_certs, cert);
}
/**