Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/crypto/opencrypto Free each crypto(4) session when we'...



details:   https://anonhg.NetBSD.org/src/rev/b74336545c59
branches:  trunk
changeset: 326109:b74336545c59
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jan 18 19:44:41 2014 +0000

description:
Free each crypto(4) session when we're done with it.  (A new session
is created for each test case.)

diffstat:

 tests/crypto/opencrypto/h_md5.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r c121e5ee8c25 -r b74336545c59 tests/crypto/opencrypto/h_md5.c
--- a/tests/crypto/opencrypto/h_md5.c   Sat Jan 18 19:26:41 2014 +0000
+++ b/tests/crypto/opencrypto/h_md5.c   Sat Jan 18 19:44:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_md5.c,v 1.3 2014/01/18 15:55:32 pgoyette Exp $ */
+/* $NetBSD: h_md5.c,v 1.4 2014/01/18 19:44:41 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -108,6 +108,9 @@
                                    j, buf[j], tests[i].digest[j]);
                        errx(1, "verification failed test %zu", i);
                }
+               res = ioctl(fd, CIOCFSESSION, &cs.ses);
+               if (res < 0)
+                       err(1, "CIOCFSESSION test %zu", i);
        }
        return 0;
 }



Home | Main Index | Thread Index | Old Index