summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c')
-rw-r--r--src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c b/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
index f946389b8a..b8aab545db 100644
--- a/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
+++ b/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
@@ -408,7 +408,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
408 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */ 408 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */
409 cryp.len=len; 409 cryp.len=len;
410 cryp.src=(caddr_t)data; 410 cryp.src=(caddr_t)data;
411 cryp.dst=(caddr_t)data; // FIXME!!! 411 cryp.dst=(caddr_t)data; /* FIXME!!! */
412 cryp.mac=(caddr_t)md; 412 cryp.mac=(caddr_t)md;
413 413
414 if(ioctl(fd, CIOCCRYPT, &cryp) == -1) 414 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
@@ -420,7 +420,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
420 dcopy=OPENSSL_malloc(len); 420 dcopy=OPENSSL_malloc(len);
421 memcpy(dcopy,data,len); 421 memcpy(dcopy,data,len);
422 cryp.src=dcopy; 422 cryp.src=dcopy;
423 cryp.dst=cryp.src; // FIXME!!! 423 cryp.dst=cryp.src; /* FIXME!!! */
424 424
425 if(ioctl(fd, CIOCCRYPT, &cryp) == -1) 425 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
426 { 426 {
@@ -437,7 +437,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
437 return 0; 437 return 0;
438 } 438 }
439 } 439 }
440 // printf("done\n"); 440 /* printf("done\n"); */
441 441
442 return 1; 442 return 1;
443 } 443 }
@@ -483,7 +483,7 @@ static int dev_crypto_md5_copy(EVP_MD_CTX *to,const EVP_MD_CTX *from)
483 const MD_DATA *from_md=from->md_data; 483 const MD_DATA *from_md=from->md_data;
484 MD_DATA *to_md=to->md_data; 484 MD_DATA *to_md=to->md_data;
485 485
486 // How do we copy sessions? 486 /* How do we copy sessions? */
487 assert(from->digest->flags&EVP_MD_FLAG_ONESHOT); 487 assert(from->digest->flags&EVP_MD_FLAG_ONESHOT);
488 488
489 to_md->data=OPENSSL_malloc(from_md->len); 489 to_md->data=OPENSSL_malloc(from_md->len);
@@ -530,7 +530,7 @@ static const EVP_MD md5_md=
530 NID_md5, 530 NID_md5,
531 NID_md5WithRSAEncryption, 531 NID_md5WithRSAEncryption,
532 MD5_DIGEST_LENGTH, 532 MD5_DIGEST_LENGTH,
533 EVP_MD_FLAG_ONESHOT, // XXX: set according to device info... 533 EVP_MD_FLAG_ONESHOT, /* XXX: set according to device info... */
534 dev_crypto_md5_init, 534 dev_crypto_md5_init,
535 dev_crypto_md5_update, 535 dev_crypto_md5_update,
536 dev_crypto_md5_final, 536 dev_crypto_md5_final,