Implemented write_smime() for OpenSSL::PKCS7.