Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/openssl/crypto/engine enable cryptodev.



details:   https://anonhg.NetBSD.org/src/rev/57a650642d4c
branches:  trunk
changeset: 586755:57a650642d4c
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 31 00:08:34 2005 +0000

description:
enable cryptodev.

diffstat:

 crypto/dist/openssl/crypto/engine/eng_cryptodev.c |  8 ++++----
 crypto/dist/openssl/crypto/engine/engine.h        |  2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 8e57e0285c1c -r 57a650642d4c crypto/dist/openssl/crypto/engine/eng_cryptodev.c
--- a/crypto/dist/openssl/crypto/engine/eng_cryptodev.c Sat Dec 31 00:07:26 2005 +0000
+++ b/crypto/dist/openssl/crypto/engine/eng_cryptodev.c Sat Dec 31 00:08:34 2005 +0000
@@ -32,9 +32,9 @@
 #include <openssl/bn.h>
 
 #if (defined(__unix__) || defined(unix)) && !defined(USG) && \
-       (defined(OpenBSD) || defined(__FreeBSD_version))
+       (defined(OpenBSD) || defined(__FreeBSD_version)) || defined(__NetBSD__)
 #include <sys/param.h>
-# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
+# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) || defined(__NetBSD__)
 #  define HAVE_CRYPTODEV
 # endif
 # if (OpenBSD >= 200110)
@@ -100,7 +100,7 @@
 static int cryptodev_bn_mod_exp(BIGNUM *r, const BIGNUM *a,
     const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
 static int cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I,
-    RSA *rsa);
+    RSA *rsa, BN_CTX *);
 static int cryptodev_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
 static int cryptodev_dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a,
     const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
@@ -756,7 +756,7 @@
 }
 
 static int
-cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
+cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *dummy)
 {
        int r;
        BN_CTX *ctx;
diff -r 8e57e0285c1c -r 57a650642d4c crypto/dist/openssl/crypto/engine/engine.h
--- a/crypto/dist/openssl/crypto/engine/engine.h        Sat Dec 31 00:07:26 2005 +0000
+++ b/crypto/dist/openssl/crypto/engine/engine.h        Sat Dec 31 00:08:34 2005 +0000
@@ -687,7 +687,7 @@
  * values. */
 void *ENGINE_get_static_state(void);
 
-#if defined(__OpenBSD__) || defined(__FreeBSD__)
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
 void ENGINE_setup_bsd_cryptodev(void);
 #endif
 



Home | Main Index | Thread Index | Old Index