cert_write app should use subject of issuer certificate as issuer of cert
diff --git a/ChangeLog b/ChangeLog
index bc21c9b..d58df3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
(found by Matthew Page)
* Typos in platform.c and pkcs11.c (found by Daniel Phillips and Steffan
Karger)
+ * cert_write app should use subject of issuer certificate as issuer of cert
= PolarSSL 1.3.6 released on 2014-04-11
diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c
index b4fc450..31b5205 100644
--- a/programs/x509/cert_write.c
+++ b/programs/x509/cert_write.c
@@ -409,7 +409,7 @@
}
ret = x509_dn_gets( issuer_name, sizeof(issuer_name),
- &issuer_crt.issuer );
+ &issuer_crt.subject );
if( ret < 0 )
{
polarssl_strerror( ret, buf, 1024 );