git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22422 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-01-13 09:43:59 +00:00
parent be07b0e171
commit b9c6f7cd95

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006 - 2007 Kungliga Tekniska H<>gskolan
* Copyright (c) 2006 - 2008 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -170,12 +170,33 @@ RSA_up_ref(RSA *rsa)
return ++rsa->references;
}
/**
* Return the RSA_METHOD used for this RSA object.
*
* @param rsa the object to get the method from.
*
* @return the method used for this RSA object.
*
* @ingroup hcrypto_rsa
*/
const RSA_METHOD *
RSA_get_method(const RSA *rsa)
{
return rsa->meth;
}
/**
* Set a new method for the RSA keypair.
*
* @param rsa rsa parameter.
* @param method the new method for the RSA parameter.
*
* @return 1 on success.
*
* @ingroup hcrypto_rsa
*/
int
RSA_set_method(RSA *rsa, const RSA_METHOD *method)
{
@@ -191,6 +212,17 @@ RSA_set_method(RSA *rsa, const RSA_METHOD *method)
return 1;
}
/**
* Set the application data for the RSA object.
*
* @param rsa the rsa object to set the parameter for
* @param arg the data object to store
*
* @return 1 on success.
*
* @ingroup hcrypto_rsa
*/
int
RSA_set_app_data(RSA *rsa, void *arg)
{
@@ -198,6 +230,16 @@ RSA_set_app_data(RSA *rsa, void *arg)
return 1;
}
/**
* Get the application data for the RSA object.
*
* @param rsa the rsa object to get the parameter for
*
* @return the data object
*
* @ingroup hcrypto_rsa
*/
void *
RSA_get_app_data(RSA *rsa)
{