More doxygen.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22387 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -74,6 +74,8 @@ RSA_new(void)
|
||||
* the engine, use the default RSA engine as returned by
|
||||
* ENGINE_get_default_RSA().
|
||||
*
|
||||
* @param engine Specific what ENGINE RSA provider should be used.
|
||||
*
|
||||
* @return a newly allocated RSA object. Free with RSA_free().
|
||||
*
|
||||
* @ingroup hcrypto_rsa
|
||||
@@ -97,14 +99,12 @@ RSA_new_method(ENGINE *engine)
|
||||
rsa->engine = ENGINE_get_default_RSA();
|
||||
}
|
||||
|
||||
if (rsa->engine) {
|
||||
rsa->meth = ENGINE_get_RSA(rsa->engine);
|
||||
if (rsa->meth == NULL) {
|
||||
ENGINE_finish(engine);
|
||||
free(rsa);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (rsa->meth == NULL)
|
||||
rsa->meth = rk_UNCONST(RSA_get_default_method());
|
||||
|
Reference in New Issue
Block a user