aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_cryptodev.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-01 01:19:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-01 01:19:18 +0000
commit5e28ccb79813a69263c7d84457da2757596cce4a (patch)
tree8a254734155679d0313d14b8c00ea9c70671f1b3 /crypto/engine/eng_cryptodev.c
parenta6575572c6120b379e2d3d39c7168a20854135da (diff)
downloadopenssl-5e28ccb79813a69263c7d84457da2757596cce4a.tar.gz
make USE_CRYPTODEV_DIGESTS work
Diffstat (limited to 'crypto/engine/eng_cryptodev.c')
-rw-r--r--crypto/engine/eng_cryptodev.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
index b639df77a3..bc4b689230 100644
--- a/crypto/engine/eng_cryptodev.c
+++ b/crypto/engine/eng_cryptodev.c
@@ -90,7 +90,9 @@ static int get_asym_dev_crypto(void);
static int open_dev_crypto(void);
static int get_dev_crypto(void);
static int get_cryptodev_ciphers(const int **cnids);
-/*static int get_cryptodev_digests(const int **cnids);*/
+#ifdef USE_CRYPTODEV_DIGESTS
+static int get_cryptodev_digests(const int **cnids);
+#endif
static int cryptodev_usable_ciphers(const int **nids);
static int cryptodev_usable_digests(const int **nids);
static int cryptodev_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
@@ -153,7 +155,7 @@ static struct {
{ 0, NID_undef, 0, 0, },
};
-#if 0
+#ifdef USE_CRYPTODEV_DIGESTS
static struct {
int id;
int nid;
@@ -259,13 +261,13 @@ get_cryptodev_ciphers(const int **cnids)
return (count);
}
+#ifdef USE_CRYPTODEV_DIGESTS
/*
* Find out what digests /dev/crypto will let us have a session for.
* XXX note, that some of these openssl doesn't deal with yet!
* returning them here is harmless, as long as we return NULL
* when asked for a handler in the cryptodev_engine_digests routine
*/
-#if 0 /* not (yet?) used */
static int
get_cryptodev_digests(const int **cnids)
{