certificate subject DNs are in double quotes
This commit is contained in:
@@ -325,7 +325,7 @@ static certificate_t* load_ca(private_stroke_cred_t *this, char *filename)
|
|||||||
|
|
||||||
if (!(x509->get_flags(x509) & X509_CA))
|
if (!(x509->get_flags(x509) & X509_CA))
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, " ca certificate '%Y' misses ca basic constraint, "
|
DBG1(DBG_CFG, " ca certificate \"%Y\" misses ca basic constraint, "
|
||||||
"discarded", cert->get_subject(cert));
|
"discarded", cert->get_subject(cert));
|
||||||
cert->destroy(cert);
|
cert->destroy(cert);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -432,7 +432,7 @@ static certificate_t* load_peer(private_stroke_cred_t *this, char *filename)
|
|||||||
if (cert)
|
if (cert)
|
||||||
{
|
{
|
||||||
cert = add_cert(this, cert);
|
cert = add_cert(this, cert);
|
||||||
DBG1(DBG_CFG, " loaded certificate '%Y' from '%s'",
|
DBG1(DBG_CFG, " loaded certificate \"%Y\" from '%s'",
|
||||||
cert->get_subject(cert), filename);
|
cert->get_subject(cert), filename);
|
||||||
return cert->get_ref(cert);
|
return cert->get_ref(cert);
|
||||||
}
|
}
|
||||||
@@ -481,7 +481,7 @@ static void load_certdir(private_stroke_cred_t *this, char *path,
|
|||||||
|
|
||||||
if (!(x509->get_flags(x509) & X509_CA))
|
if (!(x509->get_flags(x509) & X509_CA))
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, " ca certificate '%Y' lacks "
|
DBG1(DBG_CFG, " ca certificate \"%Y\" lacks "
|
||||||
"ca basic constraint, discarded",
|
"ca basic constraint, discarded",
|
||||||
cert->get_subject(cert));
|
cert->get_subject(cert));
|
||||||
cert->destroy(cert);
|
cert->destroy(cert);
|
||||||
@@ -489,7 +489,7 @@ static void load_certdir(private_stroke_cred_t *this, char *path,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, " loaded ca certificate '%Y' from '%s'",
|
DBG1(DBG_CFG, " loaded ca certificate \"%Y\" from '%s'",
|
||||||
cert->get_subject(cert), file);
|
cert->get_subject(cert), file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -507,7 +507,7 @@ static void load_certdir(private_stroke_cred_t *this, char *path,
|
|||||||
BUILD_X509_FLAG, flag, BUILD_END);
|
BUILD_X509_FLAG, flag, BUILD_END);
|
||||||
if (cert)
|
if (cert)
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, " loaded certificate '%Y' from '%s'",
|
DBG1(DBG_CFG, " loaded certificate \"%Y\" from '%s'",
|
||||||
cert->get_subject(cert), file);
|
cert->get_subject(cert), file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user