diff options
author | markus <> | 2004-04-07 20:42:12 +0000 |
---|---|---|
committer | markus <> | 2004-04-07 20:42:12 +0000 |
commit | 00b426069b0dfa8f0d9b87308646e9684f45c515 (patch) | |
tree | 2eb0df944a8ed229c1d2a165679566e87ce34575 /src/lib/libcrypto/engine/hw_cryptodev.c | |
parent | fd84abe5019daf5a6869e1d12702e3e11b7a81bc (diff) | |
download | openbsd-00b426069b0dfa8f0d9b87308646e9684f45c515.tar.gz openbsd-00b426069b0dfa8f0d9b87308646e9684f45c515.tar.bz2 openbsd-00b426069b0dfa8f0d9b87308646e9684f45c515.zip |
import openssl-0.9.7d
Diffstat (limited to 'src/lib/libcrypto/engine/hw_cryptodev.c')
-rw-r--r-- | src/lib/libcrypto/engine/hw_cryptodev.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c index 40af97ac24..467c0daa1b 100644 --- a/src/lib/libcrypto/engine/hw_cryptodev.c +++ b/src/lib/libcrypto/engine/hw_cryptodev.c | |||
@@ -12,9 +12,6 @@ | |||
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. |
15 | * 3. Neither the name of the author nor the names of contributors | ||
16 | * may be used to endorse or promote products derived from this software | ||
17 | * without specific prior written permission. | ||
18 | * | 15 | * |
19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY |
20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
@@ -874,7 +871,6 @@ cryptodev_dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) | |||
874 | goto err; | 871 | goto err; |
875 | } | 872 | } |
876 | 873 | ||
877 | printf("bar\n"); | ||
878 | memset(&kop, 0, sizeof kop); | 874 | memset(&kop, 0, sizeof kop); |
879 | kop.crk_op = CRK_DSA_SIGN; | 875 | kop.crk_op = CRK_DSA_SIGN; |
880 | 876 | ||
@@ -1054,14 +1050,17 @@ ENGINE_load_cryptodev(void) | |||
1054 | 1050 | ||
1055 | if (engine == NULL) | 1051 | if (engine == NULL) |
1056 | return; | 1052 | return; |
1057 | if ((fd = get_dev_crypto()) < 0) | 1053 | if ((fd = get_dev_crypto()) < 0) { |
1054 | ENGINE_free(engine); | ||
1058 | return; | 1055 | return; |
1056 | } | ||
1059 | 1057 | ||
1060 | /* | 1058 | /* |
1061 | * find out what asymmetric crypto algorithms we support | 1059 | * find out what asymmetric crypto algorithms we support |
1062 | */ | 1060 | */ |
1063 | if (ioctl(fd, CIOCASYMFEAT, &cryptodev_asymfeat) == -1) { | 1061 | if (ioctl(fd, CIOCASYMFEAT, &cryptodev_asymfeat) == -1) { |
1064 | close(fd); | 1062 | close(fd); |
1063 | ENGINE_free(engine); | ||
1065 | return; | 1064 | return; |
1066 | } | 1065 | } |
1067 | close(fd); | 1066 | close(fd); |