sfackler/rust-openssl — pull request #44 by mvdnes (2014-09-12 13:51:26+00:00)
Title: Change functions used by PKey {load,save}_{pub,priv}

The old i2d_PublicKey would dump a key that is not friendly to use by other applications. ([Discussion](http://openssl.6102.n7.nabble.com/difference-between-i2d-PUBKEY-and-i2d-PublicKey-td43869.html))

This request changes the public key functions to the PUBKEY ones. To minimize the code change I also switched to the i2d_RSA* and d2i_RSA* variants.

**Note**: This will break the loading of *public* keys generated by older versions. To resolve this, load the private key and dump in the new public key format, or convert with some external program.