summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_sign.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-04-08 06:01:55 +0000
committerRichard Levitte <levitte@openssl.org>2003-04-08 06:01:55 +0000
commit0b553683063250d29c4e5405844b860724fb8009 (patch)
tree57bb9353969c01a3fc6908921e6bf04e3cca214d /crypto/rsa/rsa_sign.c
parent43eb3b0130539b6ebce32e683b56c531f19adb1e (diff)
We seem to carry some rests of the 0.9.6 [engine] ENGINE framework, here in
form of unneeded direct calls through the engine pointer..
Diffstat (limited to 'crypto/rsa/rsa_sign.c')
-rw-r--r--crypto/rsa/rsa_sign.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c
index 619755ce0b..02eb8136b0 100644
--- a/crypto/rsa/rsa_sign.c
+++ b/crypto/rsa/rsa_sign.c
@@ -62,9 +62,6 @@
#include <openssl/rsa.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
-#ifndef OPENSSL_NO_ENGINE
-#include <openssl/engine.h>
-#endif
/* Size of an SSL signature: MD5+SHA1 */
#define SSL_SIG_LENGTH 36
@@ -81,11 +78,6 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len,
ASN1_OCTET_STRING digest;
if(rsa->flags & RSA_FLAG_SIGN_VER)
{
-#ifndef OPENSSL_NO_ENGINE
- if(ENGINE_get_RSA(rsa->engine)->rsa_sign)
- return ENGINE_get_RSA(rsa->engine)->rsa_sign(type,
- m, m_len, sigret, siglen, rsa);
-#endif
return rsa->meth->rsa_sign(type, m, m_len,
sigret, siglen, rsa);
}
@@ -165,11 +157,6 @@ int RSA_verify(int dtype, const unsigned char *m, unsigned int m_len,
if(rsa->flags & RSA_FLAG_SIGN_VER)
{
-#ifndef OPENSSL_NO_ENGINE
- if(ENGINE_get_RSA(rsa->engine)->rsa_verify)
- return ENGINE_get_RSA(rsa->engine)->rsa_verify(dtype,
- m, m_len, sigbuf, siglen, rsa);
-#endif
return rsa->meth->rsa_verify(dtype, m, m_len,
sigbuf, siglen, rsa);
}