summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-08-04 12:16:56 +0000
committerBen Laurie <ben@openssl.org>2001-08-04 12:16:56 +0000
commit0713f8abe6e1b3cebc9d48c0c70d0edd252da5d4 (patch)
treea24520bda0fdf0de0ac0d3af594654a36a0d93ff /crypto
parent93d9121a775da2beb680d889929245309032fcc0 (diff)
Parameter correction for CIOFSESSION.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/openbsd_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/evp/openbsd_hw.c b/crypto/evp/openbsd_hw.c
index abe687ddd2..c77adc1405 100644
--- 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;
}