aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/config/credentials/local_credential_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/config/credentials/local_credential_store.c')
-rw-r--r--src/charon/config/credentials/local_credential_store.c7
1 files changed, 4 insertions, 3 deletions
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);
}
/**