Make S/MIME output conform with the mail and MIME standards.
[openssl.git] / apps / smime.c
index 90fe026f567781d86445d240c0e3be6e63eebe4e..482bd18e4385788b61a3dd4bddbbc77437bae5d0 100644 (file)
@@ -530,9 +530,9 @@ int MAIN(int argc, char **argv)
        } else if(operation == SMIME_PK7OUT) {
                PEM_write_bio_PKCS7(out, p7);
        } else {
-               if(to) BIO_printf(out, "To: %s\n", to);
-               if(from) BIO_printf(out, "From: %s\n", from);
-               if(subject) BIO_printf(out, "Subject: %s\n", subject);
+               if(to) BIO_printf(out, "To: %s\r\n", to);
+               if(from) BIO_printf(out, "From: %s\r\n", from);
+               if(subject) BIO_printf(out, "Subject: %s\r\n", subject);
                if(outformat == FORMAT_SMIME) 
                        SMIME_write_PKCS7(out, p7, in, flags);
                else if(outformat == FORMAT_PEM)