More doxygen.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22387 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-12-30 18:57:01 +00:00
parent b63801cef2
commit bed46d9df2

View File

@@ -74,6 +74,8 @@ RSA_new(void)
* the engine, use the default RSA engine as returned by * the engine, use the default RSA engine as returned by
* ENGINE_get_default_RSA(). * ENGINE_get_default_RSA().
* *
* @param engine Specific what ENGINE RSA provider should be used.
*
* @return a newly allocated RSA object. Free with RSA_free(). * @return a newly allocated RSA object. Free with RSA_free().
* *
* @ingroup hcrypto_rsa * @ingroup hcrypto_rsa
@@ -97,14 +99,12 @@ RSA_new_method(ENGINE *engine)
rsa->engine = ENGINE_get_default_RSA(); rsa->engine = ENGINE_get_default_RSA();
} }
if (rsa->engine) {
rsa->meth = ENGINE_get_RSA(rsa->engine); rsa->meth = ENGINE_get_RSA(rsa->engine);
if (rsa->meth == NULL) { if (rsa->meth == NULL) {
ENGINE_finish(engine); ENGINE_finish(engine);
free(rsa); free(rsa);
return 0; return 0;
} }
}
if (rsa->meth == NULL) if (rsa->meth == NULL)
rsa->meth = rk_UNCONST(RSA_get_default_method()); rsa->meth = rk_UNCONST(RSA_get_default_method());