<html>Hi,<br />I'm porting some code to OpenSSL 1.1 -- for the most part, it's going well, but there's some things I'm not sure about:<br /><br />- What replaces a direct access to "sha1_hash" in an X509? (found in Qt 5.7)<br /><br />So far, haven't come up with a proper alternative to this. Should the code be refactored to use X509_issuer_and_serial_hash (which isn't quite the same, but should still give a unique hash)?<br />[this is from qHash -- so the purpose really is to get a unique hash of the contents]<br /><br />- What's the best way to copy an EVP_PKEY?<br /><br />Also from Qt 5.7:<br />rsa = RSA_new();<br />memcpy(rsa, EVP_PKEY_get1_RSA(pkey), sizeof(RSA));<br />[breaks because sizeof(RSA) is no longer known]<br />for EC, there's EC_KEY_dup -- for RSA and DSA, not so much.<br /><br />- What's the proper successor to NETSCAPE_X509? (from kdelibs4support)<br />I presume this (the method KSSLCertificate::toNetscape()) can just be deleted because nothing should be using Netscape x509 anymore?<br /><br /><br />Outside of those, all problems I've run into so far were fairly easy to solve.<br /><br />ttyl<br />bero</html>