projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93d9121
)
Parameter correction for CIOFSESSION.
author
Ben Laurie
<ben@openssl.org>
Sat, 4 Aug 2001 12:16:56 +0000
(12:16 +0000)
committer
Ben Laurie
<ben@openssl.org>
Sat, 4 Aug 2001 12:16:56 +0000
(12:16 +0000)
crypto/evp/openbsd_hw.c
patch
|
blob
|
history
diff --git
a/crypto/evp/openbsd_hw.c
b/crypto/evp/openbsd_hw.c
index abe687ddd249d4822850c981fde303e00eb72d99..c77adc1405bf54432a16d37852c4662b9e2266d9 100644
(file)
--- a/
crypto/evp/openbsd_hw.c
+++ b/
crypto/evp/openbsd_hw.c
@@
-106,7
+106,8
@@
static int dev_crypto_init(EVP_CIPHER_CTX *ctx)
static int dev_crypto_cleanup(EVP_CIPHER_CTX *ctx)
{
- if(ioctl(fd,CIOCFSESSION,data(ctx)->ses) == -1)
+ fprintf(stderr,"clean up session %d\n",data(ctx)->ses);
+ if(ioctl(fd,CIOCFSESSION,&data(ctx)->ses) == -1)
err("CIOCFSESSION failed");
OPENSSL_free(data(ctx)->key);
@@
-139,6
+140,7
@@
static int dev_crypto_des_ede3_init_key(EVP_CIPHER_CTX *ctx,
ctx->cipher=EVP_des_ede3_cbc();
return ctx->cipher->init(ctx,key,iv,enc);
}
+ fprintf(stderr,"created session %d\n",data(ctx)->ses);
return 1;
}