Quick porting guide for moving from SSLeay 0.4.x to SSLeay 0.5.x OLD NEW =============================================================================== X509_oneline_X509_NAME X509_NAME_oneline ssl_con=(SSL *)SSL_new() ssl_ctx=(SSL_CTX *)SSL_CTX_new(); ssl_con=(SSL *)SSL_new(ssl_ctx); X509_set_default_verify_paths() -> X509_set_default_verify_paths(ssl_ctx->cert) Soon to become: SSL_set_default_verify_paths(ssl_con) PEM_read_X509(x,y) PEM_read_X509(x,&y,NULL) OR y=PEM_read_X509(x,NULL,NULL) PEM_read_RSA(x,y) PEM_read_RSAPrivateKey(x,&y,NULL) OR y=PEM_read_RSAPrivateKey(x,NULL,NULL) X509_verify_error_string(X) X509_cert_verify_error_string(x) =============================================================================== Include files: remove any references to the following: "ssl_err.h", "der.h" x509.h requires rsa.h to be included before it if you use anything that actually looks at the RSA stuff (i.e. PEM_read_RSAPrivateKey) (an indication that this is required is a compiler error message like "undefined symbol: d2i_RSAPrivateKey") =============================================================================== Creating dummy certificates: req -new -x509 -nodes -out filename.pem -keyout filename.pem [-config /usr/local/ssl/lib/ssleay.conf] =============================================================================== ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL/SSLeay-0.5.1.tar.gz ftp://ftp.psy.uq.oz.au/pub/Crypto/SSLapps/SSLtelnet-0.7.tar.gz ftp://ftp.psy.uq.oz.au/pub/Crypto/SSLapps/SSLftp-0.7.tar.gz Tim Hudson tjh@mincom.oz.au 21-Dec-95