Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2007 01:51:44 +0900
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        Mike Tancsa <mike@sentex.net>, Harald Schmalzbauer <h.schmalzbauer@omnisec.de>
Cc:        freebsd-stable@freebsd.org, simon@FreeBSD.org
Subject:   Re: cryptodev and ssh on RELENG_7
Message-ID:  <20071129015144.24c67521.nork@FreeBSD.org>
In-Reply-To: <200711271237.lARCbdMB077950@lava.sentex.ca>
References:  <20071127092729.189bcbae@titan.flintsbach.schmalzbauer.de> <200711271237.lARCbdMB077950@lava.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 Nov 2007 07:37:49 -0500
Mike Tancsa <mike@sentex.net> wrote:
> >I have a HiFN crypto card and can remember that it was used for ssh
> >connections with 3des encryption (on 6.1 afair).
> >But with RELENG_7 it isn't used at all (no interrupts) if I
> >'ssh -v -c 3des-cbc user@host'
> >Any ideas what is wrong?
> >dmesg:
> >hifn0 mem
> >0x80000000-0x80000fff,0x80040000-0x80041fff,0x80080000-0x80087fff irq
> >12 at device 13.0 on pci0 hifn0: [ITHREAD] hifn0: Hifn 7955, rev 0,
> >32KB dram, pll=0x801<ext clk, 4x mult>
> >crw-rw-rw-  1 root  wheel  -   0,  41 Nov 27 08:13:41 2007 /dev/crypto
> Hi,
>          Are you sure you have device crypto and device cryptodev in 
> the kernel?  Also, there is a program in 
> /usr/src/tools/tools/crypto  called hifnstats.  It will show some 
> usuage stats. e.g.

	This issue is one of a gcc42 issue.  But gcc42 is not wrong.
	OpenSSL has a using __FreeBSD_version issue.  So to fix this
	issue, you should apply following patch.

--- crypto/openssl/crypto/engine/eng_cryptodev.c.orig	2006-07-30 04:10:18.000000000 +0900
+++ crypto/openssl/crypto/engine/eng_cryptodev.c	2007-11-08 01:55:35.000000000 +0900
@@ -32,7 +32,7 @@
 #include <openssl/bn.h>
 
 #if (defined(__unix__) || defined(unix)) && !defined(USG) && \
-	(defined(OpenBSD) || defined(__FreeBSD_version))
+	(defined(OpenBSD) || defined(__FreeBSD__))
 #include <sys/param.h>
 # if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
 #  define HAVE_CRYPTODEV



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071129015144.24c67521.nork>